[med-svn] [htsjdk] 01/10: Set version from debian/changelog

Vincent Danjean vdanjean at debian.org
Tue Jul 5 23:54:09 UTC 2016


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

vdanjean pushed a commit to branch master
in repository htsjdk.

commit b1b51fd031ccde82962c21251e99a7f0b159deef
Author: Vincent Danjean <Vincent.Danjean at ens-lyon.org>
Date:   Tue Jul 5 23:21:27 2016 +0200

    Set version from debian/changelog
---
 debian/patches/20-fix-version.patch | 25 +++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/20-fix-version.patch b/debian/patches/20-fix-version.patch
new file mode 100644
index 0000000..56d8700
--- /dev/null
+++ b/debian/patches/20-fix-version.patch
@@ -0,0 +1,25 @@
+Description: use debian/changelog as source for version instead of git
+Author: Vincent Danjean <Vincent.Danjean at ens-lyon.org>
+Forwarded: not-needed
+Last-Updated: 2016-07-05
+--- a/build.gradle
++++ b/build.gradle
+@@ -45,9 +45,16 @@
+ sourceCompatibility = 1.8
+ targetCompatibility = 1.8
+ 
++def getDebianVersion() {
++    def dpkgStdOut = new ByteArrayOutputStream()
++    exec {
++        commandLine "dpkg-parsechangelog", "-S", "Version"
++        standardOutput = dpkgStdOut
++    }
++    return dpkgStdOut.toString().trim()
++}
+ final isRelease = Boolean.getBoolean("release")
+-final gitVersion = gitVersion().replaceAll(".dirty", "")
+-version = isRelease ? gitVersion : gitVersion + "-SNAPSHOT"
++version = getDebianVersion()
+ 
+ logger.info("build for version:" + version)
+ group = 'com.github.samtools'
diff --git a/debian/patches/series b/debian/patches/series
index e6aba49..1a7872a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 10-build.xml.patch
 11-snappy-java-compatibility.patch
 13-skip_network_tests
+20-fix-version.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htsjdk.git



More information about the debian-med-commit mailing list