Added LANG configuration option to LFS module.

This commit is contained in:
Manuel Canales Esparcia 2006-03-10 23:35:41 +00:00
parent 821a2c6d3d
commit dd810eacf1
3 changed files with 34 additions and 8 deletions

View file

@ -123,6 +123,14 @@
<xsl:value-of select="substring-after(string(),'patch')"/>
<xsl:text>&#xA;</xsl:text>
</xsl:when>
<!-- Setting $LANG for /et/profile -->
<xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
contains(string(),'export LANG=')">
<xsl:value-of select="substring-before(string(),'export LANG=')"/>
<xsl:text>export LANG=$LANG</xsl:text>
<xsl:value-of select="substring-after(string(),'modifiers]')"/>
<xsl:text>&#xA;</xsl:text>
</xsl:when>
<!-- Copying the kernel config file -->
<xsl:when test="string() = 'make mrproper'">
<xsl:text>make mrproper&#xA;</xsl:text>

View file

@ -260,6 +260,10 @@ 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}"
@ -312,6 +316,7 @@ SRC= /sources
MOUNT_PT= $BUILDDIR
PAGE= $PAGE
TIMEZONE= $TIMEZONE
LANG= $LANG
include makefile-functions

View file

@ -1,4 +1,7 @@
#!/bin/bash
# $Id$
set +e
# VT100 colors
@ -447,6 +450,13 @@ wrt_export_pagesize() { #
}
#----------------------------------#
wrt_export_lang() { #
#----------------------------------#
echo -e '\t@echo "export LANG=$(LANG)" >> envars' >> $MKFILE.tmp
}
#----------------------------------#
wrt_export_pkgdir() { #
#----------------------------------#
@ -652,6 +662,9 @@ extract_commands() { #
--stringparam testsuite $TEST \
--stringparam vim-lang $VIMLANG \
-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"