r2586 - in jhalfs/branches/experimental: CLFS HLFS LFS common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Fri Apr 28 09:55:38 PDT 2006


Author: manuel
Date: 2006-04-28 10:55:37 -0600 (Fri, 28 Apr 2006)
New Revision: 2586

Modified:
   jhalfs/branches/experimental/CLFS/master.sh
   jhalfs/branches/experimental/HLFS/master.sh
   jhalfs/branches/experimental/LFS/master.sh
   jhalfs/branches/experimental/common/common-functions
Log:
Merged r2585 from trunk.

Modified: jhalfs/branches/experimental/CLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/CLFS/master.sh	2006-04-28 16:53:14 UTC (rev 2585)
+++ jhalfs/branches/experimental/CLFS/master.sh	2006-04-28 16:55:37 UTC (rev 2586)
@@ -131,7 +131,7 @@
     #
     # If $vrs isn't empty, we've got a package...
     #
-    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" &&  echo -e '\ttrue' >> $MKFILE.tmp
+    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
     #
     wrt_run_as_su "${this_script}" "${file}"
     #
@@ -183,7 +183,7 @@
     # If $vrs isn't empty, we've got a package...
     # Insert instructions for unpacking the package and to set the PKGDIR variable.
     #
-    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" && echo -e '\ttrue' >> $MKFILE.tmp
+    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
     #
     wrt_run_as_su "${this_script}" "${file}"
     #
@@ -254,7 +254,7 @@
     # If $vrs isn't empty, we've got a package...
     # Insert instructions for unpacking the package and changing directories
     #
-    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" &&  echo -e '\ttrue' >> $MKFILE.tmp
+    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
     #
     # Select a script execution method
     case $this_script in
@@ -322,11 +322,8 @@
     #
     if [ "$vrs" != "" ] ; then
       case $this_script in
-        *util-linux)    wrt_unpack  "$name-$vrs.tar.*"
-                        echo -e '\ttrue' >> $MKFILE.tmp
-            ;;
-        *)              wrt_unpack2 "$name-$vrs.tar.*"
-            ;;
+        *util-linux)    wrt_unpack  "$name-$vrs.tar.*"  ;;
+        *)              wrt_unpack2 "$name-$vrs.tar.*"  ;;
       esac
     fi
     #

Modified: jhalfs/branches/experimental/HLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/HLFS/master.sh	2006-04-28 16:53:14 UTC (rev 2585)
+++ jhalfs/branches/experimental/HLFS/master.sh	2006-04-28 16:55:37 UTC (rev 2586)
@@ -235,14 +235,16 @@
 
     case $this_script in
       *binutils* )  # Dump the path to sources directory for later removal
-        echo -e '\techo "$(MOUNT_PT)$(SRC)/$$ROOT" >> sources-dir' >> $MKFILE.tmp
+(
+cat << EOF
+	@ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
+	echo "\$(MOUNT_PT)\$(SRC)/\$\$ROOT" >> sources-dir
+EOF
+) >> $MKFILE.tmp
         ;;
       *adjusting* )  # For the Adjusting phase we must to cd to the binutils-build directory.
         echo -e '\t at echo "export PKGDIR=$(MOUNT_PT)$(SRC)/binutils-build" > envars' >> $MKFILE.tmp
         ;;
-      * )  # Everything else, add a true statment so we don't confuse make
-        echo -e '\ttrue' >> $MKFILE.tmp
-        ;;
     esac
 
     # Insert date and disk usage at the top of the log file, the script run

Modified: jhalfs/branches/experimental/LFS/master.sh
===================================================================
--- jhalfs/branches/experimental/LFS/master.sh	2006-04-28 16:53:14 UTC (rev 2585)
+++ jhalfs/branches/experimental/LFS/master.sh	2006-04-28 16:55:37 UTC (rev 2586)
@@ -112,7 +112,6 @@
 
       # Insert instructions for unpacking the package and to set the PKGDIR variable.
       wrt_unpack "$FILE"
-      echo -e '\ttrue' >> $MKFILE.tmp
     fi
 
     # Insert date and disk usage at the top of the log file, the script run

Modified: jhalfs/branches/experimental/common/common-functions
===================================================================
--- jhalfs/branches/experimental/common/common-functions	2006-04-28 16:53:14 UTC (rev 2585)
+++ jhalfs/branches/experimental/common/common-functions	2006-04-28 16:55:37 UTC (rev 2586)
@@ -225,7 +225,7 @@
 	@\$(call unpack,$FILE)
 	@ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
 	echo "export PKGDIR=\$(MOUNT_PT)\$(SRC)/\$\$ROOT" > envars && \\
-	chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT && \\
+	chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT
 EOF
 ) >> $MKFILE.tmp
 }




More information about the alfs-log mailing list