jhalfs git · trunk
jhalfs LFS build automation (mirror)
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.gzMake kf5-intro versioned
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>
 </xsl:text> <xsl:element name="name">$nv_id</xsl:element> <xsl:text>
 </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>
 </xsl:text>