diff --git a/CLFS/master.sh b/CLFS/master.sh index 838885c..016caf2 100755 --- a/CLFS/master.sh +++ b/CLFS/master.sh @@ -1212,8 +1212,6 @@ $HEADER SRC= /sources MOUNT_PT= $BUILDDIR -PAGE= $PAGE -TIMEZONE= $TIMEZONE include makefile-functions diff --git a/HLFS/hlfs.xsl b/HLFS/hlfs.xsl index 03ab057..d2c520f 100644 --- a/HLFS/hlfs.xsl +++ b/HLFS/hlfs.xsl @@ -35,6 +35,10 @@ + + + + @@ -176,8 +180,11 @@ - export LC_ALL=$LC_ALL export LANG=$LANG - export INPUTRC + export LC_ALL= + + export LANG= + + export INPUTRC diff --git a/HLFS/master.sh b/HLFS/master.sh index 376f637..62ea4f9 100755 --- a/HLFS/master.sh +++ b/HLFS/master.sh @@ -453,10 +453,6 @@ 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" @@ -512,10 +508,6 @@ $HEADER SRC= /sources MOUNT_PT= $BUILDDIR -PAGE= $PAGE -TIMEZONE= $TIMEZONE -LC_ALL= $LC_ALL -LANG= $LANG include makefile-functions diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index b9ba211..aee2cfa 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -29,6 +29,9 @@ + + + @@ -133,7 +136,8 @@ - export LANG=$LANG + export LANG= + diff --git a/LFS/master.sh b/LFS/master.sh index 62c58c5..242594a 100755 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -255,10 +255,6 @@ chapter789_Makefiles() { wrt_unpack2 "$FILE" fi - case "${this_script}" in - *profile* ) wrt_export_lang ;; # 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}" @@ -309,9 +305,6 @@ $HEADER SRC= /sources MOUNT_PT= $BUILDDIR -PAGE= $PAGE -TIMEZONE= $TIMEZONE -LANG= $LANG include makefile-functions diff --git a/common/common-functions b/common/common-functions index 8baab91..1ccd315 100644 --- a/common/common-functions +++ b/common/common-functions @@ -420,21 +420,6 @@ EOF } -#----------------------------------# -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 -} - - #----------------------------------# wrt_export_pkgdir() { # #----------------------------------# @@ -633,12 +618,11 @@ extract_commands() { # --stringparam testsuite $TEST \ --stringparam timezone $TIMEZONE \ --stringparam page $PAGE \ + --stringparam lang $LANG \ + --stringparam lc_all $LC_ALL \ --stringparam keymap $KEYMAP \ --stringparam grsecurity_host $GRSECURITY_HOST \ -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 - for i in $(find ./${PROGNAME}-commands/chapter07/*) ; do - sed -i 's/"EOF"/EOF/g' $i ; - done ;; lfs) echo -n "${tab_} ${L_arrow}${BOLD}LFS${R_arrow} build" @@ -648,10 +632,8 @@ extract_commands() { # --stringparam vim-lang $VIMLANG \ --stringparam timezone $TIMEZONE \ --stringparam page $PAGE \ + --stringparam lang $LANG \ -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 - for i in $(find ./${PROGNAME}-commands/chapter07/*) ; do - sed -i 's/"EOF"/EOF/g' $i ; - done ;; blfs) echo -n "${tab_} ${L_arrow}${BOLD}BLFS${R_arrow} build"