[med-svn] r13709 - trunk/packages/pixelmed/trunk/debian
Mathieu Malaterre
malat at alioth.debian.org
Fri May 24 17:38:53 UTC 2013
Author: malat
Date: 2013-05-24 17:38:52 +0000 (Fri, 24 May 2013)
New Revision: 13709
Modified:
trunk/packages/pixelmed/trunk/debian/jnlp2desktop.xsl
trunk/packages/pixelmed/trunk/debian/jnlp2script.xsl
trunk/packages/pixelmed/trunk/debian/rules
Log:
Add version number
Modified: trunk/packages/pixelmed/trunk/debian/jnlp2desktop.xsl
===================================================================
--- trunk/packages/pixelmed/trunk/debian/jnlp2desktop.xsl 2013-05-24 17:30:26 UTC (rev 13708)
+++ trunk/packages/pixelmed/trunk/debian/jnlp2desktop.xsl 2013-05-24 17:38:52 UTC (rev 13709)
@@ -5,6 +5,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" indent="no" omit-xml-declaration="yes" encoding="utf-8"/>
<xsl:strip-space elements="*"/>
+ <xsl:param name="pixelmed_version"/>
<xsl:template match="title">
<xsl:text>Name=</xsl:text>
<xsl:value-of select="normalize-space(.)"/>
@@ -30,7 +31,9 @@
<xsl:text>[Desktop Entry]
Type=Application
Terminal=false
-Version=0.0.0
+Version=</xsl:text>
+<xsl:value-of select="$pixelmed_version"/>
+<xsl:text>
</xsl:text>
<xsl:apply-templates/>
<xsl:text>TryExec=
Modified: trunk/packages/pixelmed/trunk/debian/jnlp2script.xsl
===================================================================
--- trunk/packages/pixelmed/trunk/debian/jnlp2script.xsl 2013-05-24 17:30:26 UTC (rev 13708)
+++ trunk/packages/pixelmed/trunk/debian/jnlp2script.xsl 2013-05-24 17:38:52 UTC (rev 13709)
@@ -5,6 +5,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" indent="no" omit-xml-declaration="yes" encoding="utf-8"/>
<xsl:strip-space elements="*"/>
+ <xsl:param name="pixelmed_version"/>
<xsl:template match="jnlp">
<xsl:text>#!/bin/sh
</xsl:text>
Modified: trunk/packages/pixelmed/trunk/debian/rules
===================================================================
--- trunk/packages/pixelmed/trunk/debian/rules 2013-05-24 17:30:26 UTC (rev 13708)
+++ trunk/packages/pixelmed/trunk/debian/rules 2013-05-24 17:38:52 UTC (rev 13709)
@@ -3,6 +3,8 @@
export JAVA_HOME=/usr/lib/jvm/default-java
+VERSION = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d- | cut -f2 -d~)
+
%:
dh $@ --with javahelper
@@ -29,10 +31,10 @@
rm -rf docs
debian/DoseUtility.desktop: webstart/DoseUtility.jnlp debian/jnlp2script.xsl
- xsltproc -o $@ debian/jnlp2desktop.xsl webstart/DoseUtility.jnlp
+ xsltproc --stringparam pixelmed_version $(VERSION) -o $@ debian/jnlp2desktop.xsl webstart/DoseUtility.jnlp
debian/DoseUtility: webstart/DoseUtility.jnlp debian/jnlp2script.xsl
- xsltproc -o $@ debian/jnlp2script.xsl webstart/DoseUtility.jnlp
+ xsltproc --stringparam pixelmed_version $(VERSION) -o $@ debian/jnlp2script.xsl webstart/DoseUtility.jnlp
chmod +x $@
get-orig-source:
More information about the debian-med-commit
mailing list