From d540567eb54e7de23898b17722db28cdca520a50 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sat, 18 Mar 2006 11:42:56 +0000 Subject: [PATCH] Handled and via XSL. Fixed the chapter05 GCC installation test run. Fixed blfs-bootscripts installation. The build_Makefile code need be adapted to that new XSL code. --- HLFS/hlfs.xsl | 30 +++++++++++++++++++++++++++--- common/common-functions | 2 ++ common/config | 10 ++++++---- common/func_validate_configs.sh | 4 ++-- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/HLFS/hlfs.xsl b/HLFS/hlfs.xsl index f074037..b8927eb 100644 --- a/HLFS/hlfs.xsl +++ b/HLFS/hlfs.xsl @@ -16,6 +16,12 @@ + + + + + + + @@ -161,6 +172,15 @@ + + + make install + cd ../blfs-bootscripts-&blfs-bootscripts-version; + + + make mrproper @@ -197,8 +217,9 @@ - - + + || true @@ -219,6 +240,9 @@ $PAGE + + + **EDITME diff --git a/common/common-functions b/common/common-functions index 42c1525..c1e4541 100644 --- a/common/common-functions +++ b/common/common-functions @@ -660,6 +660,8 @@ extract_commands() { # --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 for i in $(find ./${PROGNAME}-commands/chapter07/*) ; do sed -i 's/"EOF"/EOF/g' $i ; diff --git a/common/config b/common/config index f57cbff..fae6342 100644 --- a/common/config +++ b/common/config @@ -26,10 +26,10 @@ RUNMAKE=0 # 1 = only chapter06 Glibc, GCC and Binutils testsuites # 2 = all chapter06 testsuites # 3 = all chapter05 and chapter06 testsuites -TEST=0 +TEST=1 #--- Run the stripping phases 0(no)/1(yes) -STRIP=0 +STRIP=1 #--- page definition for groff letter/A4 PAGE=letter @@ -44,8 +44,10 @@ VIMLANG=1 LC_ALL=$LC_ALL LANG=$LANG -#--- Include the keymap in the kernel if defined -KEYMAP=/usr/share/kbd/keymaps/i386/qwerty/us.map.gz +#--- Include the keymap in the kernel if defined. Path to the +# keymap file relative to /usr/share/kbd/keymaps/ +# (e.g., i386/qwerty/us.map.gz) or "none" +KEYMAP=none #=== Variables needed by ICA === #--- Run ICA testing 0/1 0(no)/1(yes) diff --git a/common/func_validate_configs.sh b/common/func_validate_configs.sh index 0acf5b2..7cc6182 100644 --- a/common/func_validate_configs.sh +++ b/common/func_validate_configs.sh @@ -92,8 +92,8 @@ inline_doc for config_param in KEYMAP; do [[ $1 = "1" ]] && echo "`eval echo $PARAM_VALS`" - [[ -z "${!config_param}" ]] && continue - [[ -e "${!config_param}" ]] && [[ -s "${!config_param}" ]] && continue + [[ "${!config_param}" = "none" ]] && continue + [[ -e "/usr/share/kbd/keymaps/${!config_param}" ]] && [[ -s "/usr/share/kbd/keymaps/${!config_param}" ]] && continue # If you make it this far then there is a problem write_error_and_die