[xmds2] 01/01: debian/patches/revision-number-as-deb-pkg.patch: New patch

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Sat Jan 11 14:11:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository xmds2.

commit 300deb65d24e09dede7b39bc2801f77eaf9849b8
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Sat Jan 11 15:05:30 2014 +0100

    debian/patches/revision-number-as-deb-pkg.patch: New patch
    
    This patch inserts the Debian package number in the notice shown by
    xmds2 and xsil2graphics2 at launching.
    
    Git-Dch: Full
---
 debian/patches/revision-number-as-deb-pkg.patch | 19 +++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/revision-number-as-deb-pkg.patch b/debian/patches/revision-number-as-deb-pkg.patch
new file mode 100644
index 0000000..90fd464
--- /dev/null
+++ b/debian/patches/revision-number-as-deb-pkg.patch
@@ -0,0 +1,19 @@
+Description: Insert Debian package version in subversionRevisionString 
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Forwarded: not-needed
+Last-Update: 2014-01-11
+
+--- xmds2-2.1.4.orig/xpdeint/version.sh
++++ xmds2-2.1.4/xpdeint/version.sh
+@@ -15,6 +15,11 @@ elif [ -f "Version.py" ]; then
+   # File exists, let's not change the version
+   exit
+ fi
++if [ -f ../debian/changelog ] ; then
++    REVISION=$(head --lines=1 ../debian/changelog)
++    REVISION=${REVISION##*\(}
++    REVISION="\"Debian package ${REVISION%%\)*}\""
++fi
+ echo "#!/usr/bin/env python" > Version.py
+ echo "# encoding: utf-8" >> Version.py
+ echo "\"\"\"This is generated by the makefile via the shell program \'version.sh\'\"\"\"" >> Version.py
diff --git a/debian/patches/series b/debian/patches/series
index 3cdf6c6..cf235ff 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ interpreter-name-in-shebang.patch
 operator-bashism.patch
 drop-dependency-on-sphinx.patch
 string-quote-in-run-tests.patch
+revision-number-as-deb-pkg.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xmds2.git



More information about the debian-science-commits mailing list