Changeset abc8b27 for LFS/master.sh


Ignore:
Timestamp:
08/29/2014 04:43:10 PM (10 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
9622581
Parents:
1f25a75
Message:

Change the command to create the CHROOT$i variables so that it looks better.
Thanks to "amakarov" for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r1f25a75 rabc8b27  
    434434  for file in ../chroot-scripts/*chroot* ; do
    435435    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|" \
    441440                -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)|'`
    446442    echo -e "CHROOT$i= $chroot\n" >> $MKFILE
    447443    i=`expr $i + 1`
Note: See TracChangeset for help on using the changeset viewer.