Nimbin[12]?Mirrors & Forks / jhalfs / commits / 280cff6

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

Make kf5-intro versioned

Pierre Labastie · 2023-11-01 15:31 · 280cff6a4a5789f78277f3157d2b7414eb645a4e

kf5-intro contains kf5-frameworks version, so should be run
each time there is a new version. We retrieve this version
from packages.ent, and we put it in packages.xml. This should
be enough.
 BLFS/gen-special.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/BLFS/gen-special.sh b/BLFS/gen-special.sh
index ec706fd..7f34fff 100755
--- a/BLFS/gen-special.sh
+++ b/BLFS/gen-special.sh
@@ -59,13 +59,21 @@ EOF
 
 # Non-versionned packages. Add to NV_LIST if you need more.
 for nv_id in $NV_LIST; do
+# Actually, kf5-intro contains some version info, so should be
+# versioned. For other packages, we define version to 1.0.0
+# because the DTD needs a version tag.
+  DUM_VER=1.0.0
+  if [ $nv_id = kf5-intro ]; then
+    DUM_VER=$(grep kf5-version $BLFS_DIR/packages.ent | \
+              sed 's/.*"\([^"]*\).*/\1/')
+  fi
   cat >>$SPECIAL_FILE << EOF
     <xsl:when test="@id='$nv_id'">
       <xsl:text>      </xsl:text>
       <package><xsl:text>&#xA;        </xsl:text>
         <xsl:element name="name">$nv_id</xsl:element>
         <xsl:text>&#xA;        </xsl:text>
-        <xsl:element name="version">1.0.0</xsl:element>
+        <xsl:element name="version">$DUM_VER</xsl:element>
         <xsl:if
             test="document(\$installed-packages)//package[name=current()/@id]">
           <xsl:text>&#xA;        </xsl:text>