r3094 - jhalfs/branches/experimental/HLFS

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Wed Aug 30 12:51:33 PDT 2006


Author: georgeb
Date: 2006-08-30 13:51:33 -0600 (Wed, 30 Aug 2006)
New Revision: 3094

Modified:
   jhalfs/branches/experimental/HLFS/master.sh
Log:
corrections to HLFS code, makefile creation 

Modified: jhalfs/branches/experimental/HLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/HLFS/master.sh	2006-08-30 02:01:04 UTC (rev 3093)
+++ jhalfs/branches/experimental/HLFS/master.sh	2006-08-30 19:51:33 UTC (rev 3094)
@@ -12,13 +12,13 @@
 process_toolchain() {        # embryo,cocoon and butterfly need special handling
 #----------------------------#
   local toolchain=$1
-  local this_script=$2
+  local this_file=$2
   local tc_phase
   local binutil_tarball
   local gcc_core_tarball
   local TC_MountPT
   local remove_existing
-  
+
   tc_phase=`echo $toolchain | sed -e 's@[0-9]\{3\}-@@' -e 's at -toolchain@@'`
   case $tc_phase in
     embryo | \
@@ -61,10 +61,10 @@
 
   case ${tc_phase} in
     butterfly)
-        [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}"
-        CHROOT_wrt_RunAsRoot "$toolchain" "$this_script"
+        [[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${toolchain}"
+        CHROOT_wrt_RunAsRoot "$this_file"
       ;;
-    *)  LUSER_wrt_RunAsUser "$toolchain" "$this_script"
+    *)  LUSER_wrt_RunAsUser  "$this_file"
       ;;
   esac
   #
@@ -127,6 +127,7 @@
 		touch luser-exist; \\
 	fi;
 	@chown \$(LUSER) \$(MOUNT_PT)/tools && \\
+	chown -R \$(LUSER) \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\
 	chown \$(LUSER) \$(MOUNT_PT)/sources && \\
 	touch \$@ && \\
 	echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
@@ -153,6 +154,7 @@
 	echo "source $JHALFSDIR/envars" >> /home/\$(LUSER)/.bashrc && \\
 	chown \$(LUSER):\$(LGROUP) /home/\$(LUSER)/.bashrc && \\
 	touch envars && \\
+	chown \$(LUSER) envars && \\
 	touch \$@ && \\
 	echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
 	echo --------------------------------------------------------------------------------\$(WHITE)
@@ -553,7 +555,7 @@
 (
   cat << EOF
 
-all:	mk_SETUP mk_LUSER mk_CHROOT mk_BOOT
+all:	mk_SETUP mk_LUSER mk_CHROOT mk_BOOT do-housekeeping
 	@\$(call echo_finished,$VERSION)
 
 
@@ -591,19 +593,6 @@
 BOOT:	$chapter7
 
 
-
-  
-all:  chapter3 chapter5 chapter6 chapter7 do-housekeeping
-	@\$(call echo_finished,$VERSION)
-
-chapter3:  020-creatingtoolsdir 021-addinguser 022-settingenvironment
-
-chapter5:  chapter3 $chapter5 restore-luser-env
-
-chapter6:  chapter5 $chapter6
-
-chapter7:  chapter6 $chapter7
-
 clean-all:  clean
 	rm -rf ./{hlfs-commands,logs,Makefile,*.xsl,makefile-functions,packages,patches}
 




More information about the alfs-log mailing list