more notes...

Bruce Dubbs bdubbs at swbell.net
Sun Oct 20 07:19:30 PDT 2002


jsmaby at virgo.umeche.maine.edu wrote:

>>>>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
>>>>-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
>>>>lib/Makefile.in.backup > lib/Makefile.in ??
>>>>
>Or perhaps better written:
>
>echo '132 s/^/atexit.c/
>      192 s/^/atexit$U.$(OBJEXT) /
>      wq' | ed lib/Makefile.in
>

It certainly makes the expression more obvious.  One problem I can see 
is that if Makefile.in changes by even one line, your version will still 
make the changes, perhaps erroneously.  

  -- Bruce

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list