Changeset dd810ea


Ignore:
Timestamp:
03/10/2006 11:35:41 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
aab51df
Parents:
821a2c6
Message:

Added LANG configuration option to LFS module.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r821a2c6 rdd810ea  
    124124        <xsl:text>&#xA;</xsl:text>
    125125      </xsl:when>
     126      <!-- Setting $LANG for /et/profile -->
     127      <xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
     128                contains(string(),'export LANG=')">
     129        <xsl:value-of select="substring-before(string(),'export LANG=')"/>
     130        <xsl:text>export LANG=$LANG</xsl:text>
     131        <xsl:value-of select="substring-after(string(),'modifiers]')"/>
     132        <xsl:text>&#xA;</xsl:text>
     133      </xsl:when>
    126134      <!-- Copying the kernel config file -->
    127135      <xsl:when test="string() = 'make mrproper'">
  • LFS/master.sh

    r821a2c6 rdd810ea  
    261261    fi
    262262
     263    case "${this_script}" in
     264      *profile*  ) wrt_export_lang ;; # For /etc/profile we need to set LANG envar.
     265    esac
     266
    263267      # Check if we have a real /etc/fstab file
    264268    if [[ `_IS_ ${this_script} fstab` ]] && [[ -n "$FSTAB" ]] ; then
     
    313317PAGE= $PAGE
    314318TIMEZONE= $TIMEZONE
     319LANG= $LANG
    315320
    316321include makefile-functions
  • common/common-functions

    r821a2c6 rdd810ea  
    11#!/bin/bash
    2 set +e
     2
     3# $Id$
     4
     5set +e
    36
    47# VT100 colors
     
    236239        echo "export PKGDIR=\$(MOUNT_PT)\$(SRC)/\$\$ROOT" > envars && \\
    237240
    238         chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT 
     241        chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT
    239242EOF
    240243) >> $MKFILE.tmp
     
    445448#----------------------------------#
    446449  echo -e '\t@echo "export PAGE=$(PAGE)" >> envars' >> $MKFILE.tmp
     450}
     451
     452
     453#----------------------------------#
     454wrt_export_lang() {            #
     455#----------------------------------#
     456  echo -e '\t@echo "export LANG=$(LANG)" >> envars' >> $MKFILE.tmp
    447457}
    448458
     
    585595           -o patcheslist_.wget \
    586596           patcheslist.xsl \
    587            $BOOK/index.xml 
     597           $BOOK/index.xml
    588598           #> /dev/null 2>&1
    589599
     
    653663                 --stringparam vim-lang $VIMLANG \
    654664                 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
     665        for i in $(find ./${PROGNAME}-commands/chapter07/*) ; do
     666          sed -i 's/"EOF"/EOF/g' $i ;
     667        done
    655668      ;;
    656669    blfs)
     
    664677    *) exit 1
    665678  esac
    666    
     679
    667680  echo " ...OK"
    668681
     
    683696
    684697  # There is no HLFS patches.ent file so we will create one.
    685  
     698
    686699  case "${PROGNAME}" in
    687700    hlfs)  build_patches_file ;;
     
    691704    *) exit 1
    692705  esac
    693  
     706
    694707  # Done. Moving on...
    695708  get_sources
     
    702715  cd $BUILDDIR/sources
    703716
    704   # Hackish fix for the bash-doc, glibc-{linuxthreads,libidn} 
     717  # Hackish fix for the bash-doc, glibc-{linuxthreads,libidn}
    705718  # that don't conform to norms in the URL scheme.
    706719  DIR=`echo $1 | sed 's@-doc@@;s@-linuxthreads@@;s@-libidn@@;s@-testsuite@@'`
     
    770783
    771784      VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
    772       case $PKG in 
     785      case $PKG in
    773786        tcl)         FILE="$PKG$VRS-src.tar.bz2"  ;;
    774787        vim-lang)    PKG="vim"
Note: See TracChangeset for help on using the changeset viewer.