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:
Pierre Labastie 2014-08-29 16:43:10 +00:00
parent 1f25a75e57
commit abc8b27cb4

View file

@ -433,16 +433,12 @@ build_Makefile() { #
i=1 i=1
for file in ../chroot-scripts/*chroot* ; do for file in ../chroot-scripts/*chroot* ; do
chroot=`cat $file | \ chroot=`cat $file | \
sed -e "s@chroot@$CHROOT_LOC@" \ perl -pe 's|\\\\\n||g' | \
-e '/#!\/bin\/bash/d' \ tr -s [:space:] | \
-e 's@ \\\@ @g' | \ grep chroot | \
tr -d '\n' | \ sed -e "s|chroot|$CHROOT_LOC|" \
sed -e 's/ */ /g' \
-e 's|\\$|&&|g' \ -e 's|\\$|&&|g' \
-e 's|exit||g' \ -e 's|"$$LFS"|$(MOUNT_PT)|'`
-e 's|"$$LFS"|$(MOUNT_PT)|' \
-e 's|set -e||' \
-e 's|set +h||'`
echo -e "CHROOT$i= $chroot\n" >> $MKFILE echo -e "CHROOT$i= $chroot\n" >> $MKFILE
i=`expr $i + 1` i=`expr $i + 1`
done done