Opened 23 years ago

Closed 23 years ago

Last modified 23 years ago

#148 closed defect (fixed)

Shorter fileutils sed

Reported by: gerard@… Owned by: gerard@…
Priority: normal Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

Current: cp -f lib/Makefile.in lib/Makefile.in.backup && sed 's/\(.*\)\(fopen-safer\.c \)
/\1\2atexit.c
/' \

lib/Makefile.in > tmp &&

sed 's/\(.*\)\(idcache\$U\.\$.*\)
/\1\2atexit$U.$(OBJEXT)
/' \

tmp > lib/Makefile.in

New with only one sed command: cp -f lib/Makefile.in lib/Makefile.in.backup && sed -e 's/\(.*\)\(fopen-safer\.c \)
/\1\2atexit.c
/' \

-e 's/\(.*\)\(idcache\$U\.\$.*\)
/\1\2atexit$U.$(OBJEXT)
/' \ lib/Makefile.in > lib/Makefile.in~ &&

mv lib/Makefile.in~ lib/Makefile.in

Change History (2)

comment:1 by gerard@…, 23 years ago

Owner: changed from lfs-book@… to gerard@…
Status: newassigned

comment:2 by gerard@…, 23 years ago

Resolution: fixed
Status: assignedclosed

A diff on the two lib/Makefile.in files created by the commands before and after the change show now difference whatsoever, so this "one sed does all" works fine.

Note: See TracTickets for help on using tickets.