diff --git a/CLFS/master.sh b/CLFS/master.sh index 1d33589..838885c 100755 --- a/CLFS/master.sh +++ b/CLFS/master.sh @@ -707,14 +707,6 @@ final_system_Makefiles() { # temp-perl) wrt_unpack2 "perl-$vrs.tar.*" ;; *) wrt_unpack2 "$name-$vrs.tar.*" ;; esac - # - # Export a few 'config' vars.. - case $this_script in - *glibc*) # For glibc we can set then TIMEZONE envar. - wrt_export_timezone ;; - *groff*) # For Groff we need to set PAGE envar. - wrt_export_pagesize ;; - esac fi # wrt_run_as_chroot1 "${this_script}" "${file}" diff --git a/HLFS/hlfs.xsl b/HLFS/hlfs.xsl index d0e65a3..03ab057 100644 --- a/HLFS/hlfs.xsl +++ b/HLFS/hlfs.xsl @@ -29,6 +29,12 @@ 3 = all chapter05 and chapter06 testsuites--> + + + + + + @@ -199,13 +205,6 @@ - - - - ${TIMEZONE} - - - + ancestor::sect2[@id='testing-gcc'] and + not(contains(string(),'EOF'))"> || true @@ -255,10 +255,10 @@ - $TIMEZONE + - $PAGE + diff --git a/HLFS/master.sh b/HLFS/master.sh index 4272362..376f637 100755 --- a/HLFS/master.sh +++ b/HLFS/master.sh @@ -354,12 +354,6 @@ chapter6_Makefiles() { # sysroot or chroot build phase *readjusting*) # For the Re-Adjusting phase we must to cd to the binutils-build directory. echo -e '\t@echo "export PKGDIR=$(SRC)/binutils-build" > envars' >> $MKFILE.tmp ;; - *glibc* | *uclibc* ) # For glibc and uClibc we need to set TIMEZONE envar. - wrt_export_timezone - ;; - *groff* ) # For Groff we need to set PAGE envar. - wrt_export_pagesize - ;; esac # In the mount of kernel filesystems we need to set LFS and not to use chroot. diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 71e4dd3..b9ba211 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -23,6 +23,12 @@ + + + + + + @@ -191,10 +197,10 @@ - $TIMEZONE + - $PAGE + **EDITME diff --git a/LFS/master.sh b/LFS/master.sh index 45b5c43..62c58c5 100755 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -184,11 +184,6 @@ chapter6_Makefiles() { wrt_unpack2 "$FILE" fi - case "${this_script}" in - *glibc* ) wrt_export_timezone ;; # For Glibc we need to set TIMEZONE envar. - *groff* ) wrt_export_pagesize ;; # For Groff we need to set PAGE envar. - esac - # In the mount of kernel filesystems we need to set LFS # and not to use chroot. if [[ `_IS_ ${this_script} kernfs` ]] ; then diff --git a/common/common-functions b/common/common-functions index cdc416c..8baab91 100644 --- a/common/common-functions +++ b/common/common-functions @@ -420,20 +420,6 @@ EOF } -#----------------------------------# -wrt_export_timezone() { # -#----------------------------------# - echo -e '\t@echo "export TIMEZONE=$(TIMEZONE)" >> envars' >> $MKFILE.tmp -} - - -#----------------------------------# -wrt_export_pagesize() { # -#----------------------------------# - echo -e '\t@echo "export PAGE=$(PAGE)" >> envars' >> $MKFILE.tmp -} - - #----------------------------------# wrt_export_lang() { # #----------------------------------# @@ -641,13 +627,15 @@ extract_commands() { # ;; hlfs) echo -n "${tab_} ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS architecture" - xsltproc --nonet \ - --xinclude \ - --stringparam model $MODEL \ - --stringparam testsuite $TEST \ - --stringparam keymap $KEYMAP \ - --stringparam grsecurity_host $GRSECURITY_HOST \ - -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 + xsltproc --nonet \ + --xinclude \ + --stringparam model $MODEL \ + --stringparam testsuite $TEST \ + --stringparam timezone $TIMEZONE \ + --stringparam page $PAGE \ + --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 @@ -658,6 +646,8 @@ extract_commands() { # --xinclude \ --stringparam testsuite $TEST \ --stringparam vim-lang $VIMLANG \ + --stringparam timezone $TIMEZONE \ + --stringparam page $PAGE \ -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 ;