Changeset ad71d98


Ignore:
Timestamp:
03/19/2006 12:44:32 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
d87b293
Parents:
c3c4e1d
Message:

Set the actual TIMEZONE and PAGE values inside the generated scripts instead of exported envars.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    rc3c4e1d rad71d98  
    707707        temp-perl) wrt_unpack2 "perl-$vrs.tar.*"    ;;
    708708        *)         wrt_unpack2 "$name-$vrs.tar.*"   ;;
    709       esac
    710       #
    711       # Export a few 'config' vars..
    712       case $this_script in
    713         *glibc*) # For glibc we can set then TIMEZONE envar.
    714            wrt_export_timezone           ;;
    715         *groff*) # For Groff we need to set PAGE envar.
    716            wrt_export_pagesize           ;;
    717709      esac
    718710    fi
  • HLFS/hlfs.xsl

    rc3c4e1d rad71d98  
    2929       3 = all chapter05 and chapter06 testsuites-->
    3030  <xsl:param name="testsuite" select="1"/>
     31
     32  <!-- Time zone -->
     33  <xsl:param name="timezone" select="America/Toronto"/>
     34
     35  <!-- Page size -->
     36  <xsl:param name="page" select="letter"/>
    3137
    3238  <xsl:template match="/">
     
    200206        <xsl:text>&#xA;</xsl:text>
    201207      </xsl:when>
    202       <!-- For uClibc we need to set TIMEZONE envar -->
    203       <xsl:when test="contains(string(),'EST5EDT')">
    204         <xsl:value-of select="substring-before(string(),'EST5EDT')"/>
    205         <xsl:text>${TIMEZONE}</xsl:text>
    206         <xsl:value-of select="substring-after(string(),'EST5EDT')"/>
    207         <xsl:text>&#xA;</xsl:text>
    208       </xsl:when>
    209208      <!-- The Coreutils and Module-Init-Tools test suites are optional -->
    210209      <xsl:when test="($testsuite = '0' or $testsuite = '1') and
     
    240239      <!-- Don't stop on strip run and chapter05 GCC installation test-->
    241240      <xsl:when test="contains(string(),'strip ') or
    242                 ancestor::sect2[@id='testing-gcc']">
     241                ancestor::sect2[@id='testing-gcc'] and
     242                not(contains(string(),'EOF'))">
    243243        <xsl:apply-templates/>
    244244        <xsl:text> || true&#xA;</xsl:text>
     
    256256      <xsl:when test="ancestor::sect1[@id='ch-system-glibc'] or
    257257                      ancestor::sect1[@id='ch-system-uclibc']">
    258         <xsl:text>$TIMEZONE</xsl:text>
     258        <xsl:value-of select="$timezone"/>
    259259      </xsl:when>
    260260      <xsl:when test="ancestor::sect1[@id='ch-system-groff']">
    261         <xsl:text>$PAGE</xsl:text>
     261        <xsl:value-of select="$page"/>
    262262      </xsl:when>
    263263      <xsl:when test="ancestor::sect1[@id='bootable-kernel']">
  • HLFS/master.sh

    rc3c4e1d rad71d98  
    355355        echo -e '\t@echo "export PKGDIR=$(SRC)/binutils-build" > envars' >> $MKFILE.tmp
    356356        ;;
    357       *glibc* | *uclibc* ) # For glibc and uClibc we need to set TIMEZONE envar.
    358         wrt_export_timezone
    359         ;;
    360       *groff* ) # For Groff we need to set PAGE envar.
    361         wrt_export_pagesize
    362         ;;
    363357    esac
    364358
  • LFS/lfs.xsl

    rc3c4e1d rad71d98  
    2323  <!-- Install vim-lang package? -->
    2424  <xsl:param name="vim-lang" select="1"/>
     25
     26  <!-- Time zone -->
     27  <xsl:param name="timezone" select="America/Toronto"/>
     28
     29  <!-- Page size -->
     30  <xsl:param name="page" select="letter"/>
    2531
    2632  <xsl:template match="/">
     
    192198    <xsl:choose>
    193199      <xsl:when test="ancestor::sect1[@id='ch-system-glibc']">
    194         <xsl:text>$TIMEZONE</xsl:text>
     200        <xsl:value-of select="$timezone"/>
    195201      </xsl:when>
    196202      <xsl:when test="ancestor::sect1[@id='ch-system-groff']">
    197         <xsl:text>$PAGE</xsl:text>
     203        <xsl:value-of select="$page"/>
    198204      </xsl:when>
    199205      <xsl:otherwise>
  • LFS/master.sh

    rc3c4e1d rad71d98  
    185185    fi
    186186
    187     case "${this_script}" in
    188       *glibc*  ) wrt_export_timezone ;; # For Glibc we need to set TIMEZONE envar.
    189       *groff*  ) wrt_export_pagesize ;; # For Groff we need to set PAGE envar.
    190     esac
    191 
    192187    # In the mount of kernel filesystems we need to set LFS
    193188    # and not to use chroot.
  • common/common-functions

    rc3c4e1d rad71d98  
    418418EOF
    419419) >> $MKFILE.tmp
    420 }
    421 
    422 
    423 #----------------------------------#
    424 wrt_export_timezone() {            #
    425 #----------------------------------#
    426   echo -e '\t@echo "export TIMEZONE=$(TIMEZONE)" >> envars' >> $MKFILE.tmp
    427 }
    428 
    429 
    430 #----------------------------------#
    431 wrt_export_pagesize() {            #
    432 #----------------------------------#
    433   echo -e '\t@echo "export PAGE=$(PAGE)" >> envars' >> $MKFILE.tmp
    434420}
    435421
     
    642628    hlfs)
    643629        echo -n "${tab_} ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS architecture"
    644         xsltproc  --nonet \
    645                   --xinclude \
    646                   --stringparam model $MODEL \
    647                   --stringparam testsuite $TEST \
    648                   --stringparam keymap $KEYMAP \
    649                   --stringparam grsecurity_host $GRSECURITY_HOST \
    650                   -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
     630        xsltproc --nonet \
     631                 --xinclude \
     632                 --stringparam model $MODEL \
     633                 --stringparam testsuite $TEST \
     634                 --stringparam timezone $TIMEZONE \
     635                 --stringparam page $PAGE \
     636                 --stringparam keymap $KEYMAP \
     637                 --stringparam grsecurity_host $GRSECURITY_HOST \
     638                 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
    651639        for i in $(find ./${PROGNAME}-commands/chapter07/*) ; do
    652640          sed -i 's/"EOF"/EOF/g' $i ;
     
    659647                 --stringparam testsuite $TEST \
    660648                 --stringparam vim-lang $VIMLANG \
     649                 --stringparam timezone $TIMEZONE \
     650                 --stringparam page $PAGE \
    661651                 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
    662652        for i in $(find ./${PROGNAME}-commands/chapter07/*) ; do
Note: See TracChangeset for help on using the changeset viewer.