r2343 - in jhalfs/branches/experimental: BLFS common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Tue Mar 14 19:04:04 PST 2006


Author: georgeb
Date: 2006-03-14 20:04:04 -0700 (Tue, 14 Mar 2006)
New Revision: 2343

Modified:
   jhalfs/branches/experimental/BLFS/master.sh
   jhalfs/branches/experimental/common/common-functions
Log:
modified and commented the IFS var. inside common_functions

Modified: jhalfs/branches/experimental/BLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/BLFS/master.sh	2006-03-14 21:16:52 UTC (rev 2342)
+++ jhalfs/branches/experimental/BLFS/master.sh	2006-03-15 03:04:04 UTC (rev 2343)
@@ -65,6 +65,10 @@
       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 @@
 
     # 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 at touch $@' >> $MKFILE.tmp
+    #
+    #--------------------------------------------------------------------#
+    #              >>>>>>>> END OF Makefile ENTRY <<<<<<<<               #
+    #--------------------------------------------------------------------#
 
   done
   echo -ne "done\n"

Modified: jhalfs/branches/experimental/common/common-functions
===================================================================
--- jhalfs/branches/experimental/common/common-functions	2006-03-14 21:16:52 UTC (rev 2342)
+++ jhalfs/branches/experimental/common/common-functions	2006-03-15 03:04:04 UTC (rev 2343)
@@ -764,10 +764,9 @@
   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




More information about the alfs-log mailing list