From 580d7732390653d0647bb13f708330527c396a7a Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Mon, 27 Mar 2017 16:26:14 +0000 Subject: [PATCH] Merge trunk r3940,41 --- LFS/lfs.xsl | 48 +++++++++++++++++++++++++----------- common/libs/func_book_parser | 13 +++------- 2 files changed, 36 insertions(+), 25 deletions(-) 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 ;;