diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 1c1342c..a2405d4 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -10,6 +10,10 @@ + + + - + + + (sect2[not(@revision) or @revision=$revision]//..|.)/ + screen[(not(@role) or @role != 'nodump') and + (not(@revision) or @revision=$revision)]/ + userinput[not(starts-with(string(),'chroot'))]"> @@ -148,9 +157,12 @@ cd $PKGDIR - + + select=".//screen[(not(@role) or + @role != 'nodump') and + (not(@revision) or + @revision=$revision)]/userinput[@remap = 'install']"/> /dev/null - xsltproc --nonet \ - --xinclude \ - --output /tmp/lfs-full.xml \ - --stringparam profile.revision $INITSYS \ - $BOOK/stylesheets/lfs-xsl/profile.xsl \ - $BOOK/index.xml - xsltproc --nonet \ + --xinclude \ + --stringparam revision $INITSYS \ --stringparam testsuite $TEST \ --stringparam bomb-testsuite $BOMB_TEST \ --stringparam vim-lang $VIMLANG \ @@ -178,9 +173,7 @@ extract_commands() { # --stringparam nameserver2 $DNS2 \ --output ./${PROGNAME}-commands/ \ $XSL \ - /tmp/lfs-full.xml >>$LOGDIR/$LOG 2>&1 - - rm /tmp/lfs-full.xml + $BOOK/index.xml ;; *) echo -n " ${L_arrow}${PROGNAME}${R_arrow} book invalid, terminate build... " exit 1 ;;