From e676ffab8e4547ef4ec4286e584f756ac681d268 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Wed, 22 Mar 2006 22:52:32 +0000 Subject: [PATCH] Added specific CLFS XSL file. At this momment the CLFS system build may be broken. --- CLFS/clfs.xsl | 262 +++++++++++++++++++++++++++++++--------- CLFS/master.sh | 10 +- common/common-functions | 11 +- 3 files changed, 216 insertions(+), 67 deletions(-) diff --git a/CLFS/clfs.xsl b/CLFS/clfs.xsl index 63dd0ef..5426bb5 100644 --- a/CLFS/clfs.xsl +++ b/CLFS/clfs.xsl @@ -1,84 +1,228 @@ + + %general-entities; +]> + + + - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - 00 - - - - 0 - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + 00 + + + + 0 + + + + + + + + + + + + #!/tools/bin/bash set -e + + + #!/bin/sh + + + #!/bin/sh set -e + + + + cd $PKGDIR + + tar -xvf ../vim-&vim-version;-lang.* --strip-components=1 + + + + exit + + + + - - - - - - # Run this as root - - # End root commands - - - - - - + + - - - - # This block must be edited to suit your needs. + + + + make -k + + || true - - - - - # End of editable block. - - + + + + + + + + tar.* + + + + + + + patch -Z + + + + + + + export LANG= + + + + + + + + + make mrproper + + cp -v ../bootkernel-config .config + + + cp -v ../kernel-config .config + + + + + + + + + make -k check || true + + + + + + + + || true + + + + + + + + + + + + + + + + + || true + + + + + + + - **EDITME - - EDITME** + + + + + + + + + **EDITME + + EDITME** + + diff --git a/CLFS/master.sh b/CLFS/master.sh index 761d2b1..b056e4f 100755 --- a/CLFS/master.sh +++ b/CLFS/master.sh @@ -1070,9 +1070,8 @@ EOF ) > $MKFILE # Add chroot commands - i=1 - for file in chroot/*chroot* ; do - chroot=`cat $file | sed -e '/#!\/bin\/sh/d' \ + if [ "$METHOD" = "chroot" ] ; then + chroot=`cat chroot/*chroot* | sed -e '/#!\/tools\/bin\/bash/d' \ -e '/^export/d' \ -e '/^logout/d' \ -e 's@ \\\@ @g' | tr -d '\n' | sed -e 's/ */ /g' \ @@ -1081,9 +1080,8 @@ EOF -e 's|$| -c|' \ -e 's|"$$LFS"|$(MOUNT_PT)|'\ -e 's|set -e||'` - echo -e "CHROOT$i= $chroot\n" >> $MKFILE - i=`expr $i + 1` - done + echo -e "CHROOT1= $chroot\n" >> $MKFILE + fi # Drop in the main target 'all:' and the chapter targets with each sub-target # as a dependency. diff --git a/common/common-functions b/common/common-functions index 2b5bcf8..f4d9cbc 100644 --- a/common/common-functions +++ b/common/common-functions @@ -620,8 +620,15 @@ extract_commands() { # case ${PROGNAME} in clfs) echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture" - xsltproc --xinclude \ - --nonet \ + xsltproc --nonet \ + --xinclude \ + --stringparam method $METHOD \ + --stringparam testsuite $TEST \ + --stringparam vim-lang $VIMLANG \ + --stringparam timezone $TIMEZONE \ + --stringparam page $PAGE \ + --stringparam lang $LANG \ + --stringparam keymap $KEYMAP \ -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 ;; hlfs)