From 4bf0fc31f5ecbe4b717164343c53b42af9683034 Mon Sep 17 00:00:00 2001 From: George Boudreau Date: Wed, 15 Mar 2006 03:04:04 +0000 Subject: [PATCH] modified and commented the IFS var. inside common_functions --- BLFS/master.sh | 14 +++++++++----- common/common-functions | 7 +++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/BLFS/master.sh b/BLFS/master.sh index 8fdf707..3afba9e 100755 --- a/BLFS/master.sh +++ b/BLFS/master.sh @@ -65,6 +65,10 @@ EOF OPTIONAL=`grep "OPTIONAL" $file | sed 's/# OPTIONAL://' | tr -d '\n'` fi + #--------------------------------------------------------------------# + # >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< # + #--------------------------------------------------------------------# + # # Drop in the name of the target on a new line plus its dependencies # and call the echo_message function. ( @@ -87,11 +91,11 @@ EOF # Include a touch of the target name so make can check # if it's already been made. -( - cat << EOF - @touch \$@ -EOF -) >> $MKFILE + echo -e '\t@touch $@' >> $MKFILE.tmp + # + #--------------------------------------------------------------------# + # >>>>>>>> END OF Makefile ENTRY <<<<<<<< # + #--------------------------------------------------------------------# done echo -ne "done\n" diff --git a/common/common-functions b/common/common-functions index 5f91c87..2f99c79 100644 --- a/common/common-functions +++ b/common/common-functions @@ -764,10 +764,9 @@ get_sources() { if [ "$HPKG" = "1" ] ; then # This variable is necessary to make sure the `cat $JHALFSDIR/packages` - # separates each iteration by lines. It is necessary to have the second - # ' on the next line. - IFS=' -' + # separates each iteration by lines. + # Modify the 'internal field separator' to break on 'LF' only + IFS=$'\x0A' if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi cd $BUILDDIR/sources