Opened 23 years ago

Closed 22 years ago

Last modified 22 years ago

#192 closed defect (fixed)

change sed commands in book

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

Description

example with util-linux.

current: cp hwclock/hwclock.c hwclock/hwclock.c.backup && sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \

hwclock/hwclock.c > tmp~ &&

mv tmp~ hwclock/hwclock.c &&

Proposed change: cp hwclock/hwclock.c hwclock/hwclock.c.backup && sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \

hwclock/hwclock.c.backup > hwclock/hwclock.c

Change History (3)

comment:1 by gerard@…, 22 years ago

Priority: normalhighest

comment:2 by gimli@…, 22 years ago

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

List of files that need to be changed:

LFS/BOOK/chapter5/fileutils-inst.xml LFS/BOOK/chapter5/fileutils-exp.xml LFS/BOOK/chapter6/glibc-inst.xml LFS/BOOK/chapter6/glibc-exp.xml LFS/BOOK/chapter6/vim-inst.xml LFS/BOOK/chapter6/shadowpwd-inst.xml LFS/BOOK/chapter6/shadowpwd-exp.xml LFS/BOOK/chapter6/sysvinit-inst.xml LFS/BOOK/chapter6/utillinux-inst.xml

Some packages (file, ed) have already been fixed.. :? I hope I've found all files with erroneous seds in them, if you find any more, please report them.

comment:3 by gimli@…, 22 years ago

Resolution: fixed
Status: assignedclosed

All files have been changed, vims sed command has been adapted to the commonly used form used by the book (first, create ${file}.backup, and run the sed on that file to overwrite ${file}).

Note: See TracTickets for help on using tickets.