Nimbin[12]?Mirrors & Forks / jhalfs / commits / 42dfc6e

jhalfs git · trunk

jhalfs LFS build automation (mirror)

lfs mirror bash · first commit 2005-09-11 · last commit 2024-02-13 (2 years ago) · synced 3 days ago · upstream: git.linuxfromscratch.org/jhalfs

Python 78.4% Shell 19.8% Makefile 1.8%
git clone https://git.christianimmanuel.de/mirrors-forks/jhalfs.gitwget https://git.christianimmanuel.de/mirrors-forks/jhalfs/archive/jhalfs.tar.gz

Implementation of dependency checking 3

Pierre Labastie · 2023-03-23 17:37 · 42dfc6ef21cbb2c7b5a2b4b60d399e1de0413f77

Add an XSL stylesheet for listing packages in LFS. Those are
not listed anywhere else, but they are considered dependencies of
everything, so should never be erased.
 BLFS/gen_pkg_book.sh  |  1 +
 BLFS/xsl/list_lfs.xsl | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/BLFS/gen_pkg_book.sh b/BLFS/gen_pkg_book.sh
index 44877d4..dd8f633 100755
--- a/BLFS/gen_pkg_book.sh
+++ b/BLFS/gen_pkg_book.sh
@@ -28,6 +28,7 @@ declare BookXml="${TOPDIR}/book.xml"
 declare MakeBook="${TOPDIR}/xsl/make_book.xsl"
 declare GetVersion="${TOPDIR}/xsl/get_version.xsl"
 declare MakeScripts="${TOPDIR}/xsl/scripts.xsl"
+declare ListLFS="${TOPDIR}/xsl/list_lfs.xsl"
 declare BookHtml="${TOPDIR}/book-html"
 declare BLFS_XML="${TOPDIR}/blfs-xml"
 declare -a TARGET
diff --git a/BLFS/xsl/list_lfs.xsl b/BLFS/xsl/list_lfs.xsl
new file mode 100644
index 0000000..87fe253
--- /dev/null
+++ b/BLFS/xsl/list_lfs.xsl
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version="1.0">
+
+  <xsl:output method="text"/>
+
+  <xsl:template match="/">
+    <xsl:text>bootscripts </xsl:text>
+    <xsl:text>lfs-bootscripts </xsl:text>
+    <xsl:text>kernel </xsl:text>
+    <xsl:apply-templates select=".//chapter[@id='chapter-building-system']/sect1/sect1info/productname"/>
+  </xsl:template>
+
+  <xsl:template match="productname">
+    <xsl:copy-of select="text()"/>
+    <xsl:text> </xsl:text>
+  </xsl:template>
+
+</xsl:stylesheet>