- Timestamp:
- 08/06/2006 09:53:10 AM (18 years ago)
- Branches:
- experimental
- Children:
- ef87eed
- Parents:
- b33a57b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/master.sh
rb33a57b r8381f6e 379 379 380 380 # Add chroot commands 381 CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`" 381 382 i=1 382 383 for file in chapter06/*chroot* ; do 383 chroot=`cat $file | sed -e '/#!\/bin\/sh/d' -e 's@ \\\@ @g' | tr -d '\n' | sed \ 384 -e 's/ */ /g' -e 's|\\$|&&|g' -e 's|exit||g' -e 's|$| -c|' \ 385 -e 's|"$$LFS"|$(MOUNT_PT)|' -e 's|set -e||'` 384 chroot=`cat $file | \ 385 sed -e "s@chroot@$CHROOT_LOC@" \ 386 -e '/#!\/bin\/sh/d' \ 387 -e 's@ \\\@ @g' | \ 388 tr -d '\n' | \ 389 sed -e 's/ */ /g' \ 390 -e 's|\\$|&&|g' \ 391 -e 's|exit||g' \ 392 -e 's|$| -c|' \ 393 -e 's|"$$LFS"|$(MOUNT_PT)|' \ 394 -e 's|set -e||'` 386 395 echo -e "CHROOT$i= $chroot\n" >> $MKFILE 387 396 i=`expr $i + 1`
Note:
See TracChangeset
for help on using the changeset viewer.