|
From: Serge L. <sma...@us...> - 2008-03-21 19:38:46
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv28642 Modified Files: Tag: rel-1-2-patches functions Log Message: - added function for a line deleting Index: functions =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/functions,v retrieving revision 1.53.2.5 retrieving revision 1.53.2.6 diff -u -d -r1.53.2.5 -r1.53.2.6 --- functions 24 Jan 2006 00:50:55 -0000 1.53.2.5 +++ functions 21 Mar 2008 19:38:35 -0000 1.53.2.6 @@ -46,6 +46,14 @@ sed $1.old -e s%"$2"%"$3"%g > $1 } +# delete in file $1 the string $2 +# and save the old file +delete_str() +{ + cp $1 $1.old + sed $1.old -e /"$2"/d > $1 +} + # returns the needed libraries for $1 get_libs() { |