From 5365c39cf428698c5c56fb50597b5e9600714256 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Thu, 16 Mar 2006 21:45:51 +0000 Subject: [PATCH] Fixed the creation of /etc/profile in HLFS module. --- HLFS/master.sh | 6 ++++++ common/common-functions | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/HLFS/master.sh b/HLFS/master.sh index fef3dce..787a79e 100755 --- a/HLFS/master.sh +++ b/HLFS/master.sh @@ -515,6 +515,10 @@ EOF echo -e "\t@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 @@ SRC= /sources MOUNT_PT= $BUILDDIR PAGE= $PAGE TIMEZONE= $TIMEZONE +LC_ALL= $LC_ALL +LANG= $LANG include makefile-functions diff --git a/common/common-functions b/common/common-functions index 0742953..e761fca 100644 --- a/common/common-functions +++ b/common/common-functions @@ -453,6 +453,14 @@ wrt_export_pagesize() { # #----------------------------------# wrt_export_lang() { # #----------------------------------# + echo -e '\t@echo "export LANG=$(LANG)" > envars' >> $MKFILE.tmp +} + + +#----------------------------------# +wrt_export_lang2() { # +#----------------------------------# + echo -e '\t@echo "export LC_ALL=$(LC_ALL)" > envars' >> $MKFILE.tmp echo -e '\t@echo "export LANG=$(LANG)" >> envars' >> $MKFILE.tmp }