r2351 - in jhalfs/branches/experimental: HLFS common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Thu Mar 16 13:45:51 PST 2006


Author: manuel
Date: 2006-03-16 14:45:51 -0700 (Thu, 16 Mar 2006)
New Revision: 2351

Modified:
   jhalfs/branches/experimental/HLFS/master.sh
   jhalfs/branches/experimental/common/common-functions
Log:
Fixed the creation of /etc/profile in HLFS module.

Modified: jhalfs/branches/experimental/HLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/HLFS/master.sh	2006-03-16 21:26:27 UTC (rev 2350)
+++ jhalfs/branches/experimental/HLFS/master.sh	2006-03-16 21:45:51 UTC (rev 2351)
@@ -515,6 +515,10 @@
       echo -e "\t at cp -f $CONFIG \$(MOUNT_PT)/sources/kernel-config" >> $MKFILE.tmp
     fi
 
+    case "${this_script}" in
+      *profile*  ) wrt_export_lang2 ;; # For /etc/profile we need to set LANG envar.
+    esac
+
     # Check if we have a real /etc/fstab file
     if [[ `_IS_ $this_script fstab` ]] && [[ -n "$FSTAB" ]] ; then
       wrt_copy_fstab "$this_script"
@@ -572,6 +576,8 @@
 MOUNT_PT= $BUILDDIR
 PAGE= $PAGE
 TIMEZONE= $TIMEZONE
+LC_ALL= $LC_ALL
+LANG= $LANG
 
 include makefile-functions
 

Modified: jhalfs/branches/experimental/common/common-functions
===================================================================
--- jhalfs/branches/experimental/common/common-functions	2006-03-16 21:26:27 UTC (rev 2350)
+++ jhalfs/branches/experimental/common/common-functions	2006-03-16 21:45:51 UTC (rev 2351)
@@ -453,6 +453,14 @@
 #----------------------------------#
 wrt_export_lang() {            #
 #----------------------------------#
+  echo -e '\t at echo "export LANG=$(LANG)" > envars' >> $MKFILE.tmp
+}
+
+
+#----------------------------------#
+wrt_export_lang2() {            #
+#----------------------------------#
+  echo -e '\t at echo "export LC_ALL=$(LC_ALL)" > envars' >> $MKFILE.tmp
   echo -e '\t at echo "export LANG=$(LANG)" >> envars' >> $MKFILE.tmp
 }
 




More information about the alfs-log mailing list