Change the command to create the CHROOT$i variables so that it looks better.
Thanks to "amakarov" for the patch.
This commit is contained in:
parent
1f25a75e57
commit
abc8b27cb4
1 changed files with 5 additions and 9 deletions
|
@ -433,16 +433,12 @@ build_Makefile() { #
|
|||
i=1
|
||||
for file in ../chroot-scripts/*chroot* ; do
|
||||
chroot=`cat $file | \
|
||||
sed -e "s@chroot@$CHROOT_LOC@" \
|
||||
-e '/#!\/bin\/bash/d' \
|
||||
-e 's@ \\\@ @g' | \
|
||||
tr -d '\n' | \
|
||||
sed -e 's/ */ /g' \
|
||||
perl -pe 's|\\\\\n||g' | \
|
||||
tr -s [:space:] | \
|
||||
grep chroot | \
|
||||
sed -e "s|chroot|$CHROOT_LOC|" \
|
||||
-e 's|\\$|&&|g' \
|
||||
-e 's|exit||g' \
|
||||
-e 's|"$$LFS"|$(MOUNT_PT)|' \
|
||||
-e 's|set -e||' \
|
||||
-e 's|set +h||'`
|
||||
-e 's|"$$LFS"|$(MOUNT_PT)|'`
|
||||
echo -e "CHROOT$i= $chroot\n" >> $MKFILE
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
|
|
Reference in a new issue