ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Remove a specific line from a file.
Date Fri, 14 Nov 2003 14:42:54 GMT
On Wednesday 12 November 2003 15:18, Dominique Devienne wrote:
> I've been using myself a homegrown <sed> task. Here's an example:
>
>     <bm:sedEditorGroup id="pmodel - fix flex/bison">
>       <delete  pattern="^# *line" />
>       <delete  pattern="^# *[0-9]" />
>       <replace pattern="yy" with="yy_pmodel_gram_" />
>       <replace pattern="__EXTERN_C__" with="__cplusplus" />
>     </bm:sedEditorGroup>
>
>         <bm:sed from="pmodel/pmodel_gram_tab.c"
>                   to="pmodel/pmodel_gram.y.cpp">
>           <editorGroup refid="pmodel - fix flex/bison" />
>         </bm:sed>
>         <bm:sed from="pmodel/pmodel_gram_tab.h"
>                   to="pmodel/pmodel_gram.y.h">
>           <editorGroup refid="pmodel - fix flex/bison" />
>         </bm:sed>
>
> I find this more straightforward. --DD
That sounds like a nice task.
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message