Ticket #1692: lfs-master.sh.patch
File lfs-master.sh.patch, 1.0 KB (added by , 10 years ago) |
---|
-
LFS/master.sh
old new 1 1 #!/bin/bash 2 2 3 # $Id $3 # $Id: master.sh 3782 2014-01-28 13:29:06Z pierre $ 4 4 5 5 ################################### 6 6 ### FUNCTIONS ### … … build_Makefile() { # 433 433 i=1 434 434 for file in ../chroot-scripts/*chroot* ; do 435 435 chroot=`cat $file | \ 436 sed -e "s@chroot@$CHROOT_LOC@" \ 437 -e '/#!\/bin\/bash/d' \ 438 -e 's@ \\\@ @g' | \ 439 tr -d '\n' | \ 440 sed -e 's/ */ /g' \ 436 perl -pe 's|\\\\\n||g' | \ 437 tr -s [:space:] | \ 438 grep chroot | \ 439 sed -e "s|chroot|$CHROOT_LOC|" \ 441 440 -e 's|\\$|&&|g' \ 442 -e 's|exit||g' \ 443 -e 's|"$$LFS"|$(MOUNT_PT)|' \ 444 -e 's|set -e||' \ 445 -e 's|set +h||'` 441 -e 's|"$$LFS"|$(MOUNT_PT)|'` 446 442 echo -e "CHROOT$i= $chroot\n" >> $MKFILE 447 443 i=`expr $i + 1` 448 444 done