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:value-of select="substring-after(string(),'patch')"/>
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:when> </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 --> <!-- Copying the kernel config file -->
<xsl:when test="string() = 'make mrproper'"> <xsl:when test="string() = 'make mrproper'">
<xsl:text>make mrproper&#xA;</xsl:text> <xsl:text>make mrproper&#xA;</xsl:text>

View file

@ -260,6 +260,10 @@ chapter789_Makefiles() {
wrt_unpack2 "$FILE" wrt_unpack2 "$FILE"
fi 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 # Check if we have a real /etc/fstab file
if [[ `_IS_ ${this_script} fstab` ]] && [[ -n "$FSTAB" ]] ; then if [[ `_IS_ ${this_script} fstab` ]] && [[ -n "$FSTAB" ]] ; then
wrt_copy_fstab "${this_script}" wrt_copy_fstab "${this_script}"
@ -312,6 +316,7 @@ SRC= /sources
MOUNT_PT= $BUILDDIR MOUNT_PT= $BUILDDIR
PAGE= $PAGE PAGE= $PAGE
TIMEZONE= $TIMEZONE TIMEZONE= $TIMEZONE
LANG= $LANG
include makefile-functions include makefile-functions

View file

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# $Id$
set +e set +e
# VT100 colors # 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() { # wrt_export_pkgdir() { #
#----------------------------------# #----------------------------------#
@ -652,6 +662,9 @@ extract_commands() { #
--stringparam testsuite $TEST \ --stringparam testsuite $TEST \
--stringparam vim-lang $VIMLANG \ --stringparam vim-lang $VIMLANG \
-o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 -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) blfs)
echo -n "${tab_} ${L_arrow}${BOLD}BLFS${R_arrow} build" echo -n "${tab_} ${L_arrow}${BOLD}BLFS${R_arrow} build"