[med-svn] [scythe] 01/01: Use dpkg-parsechangelog to set package version

Kevin Murray daube-guest at moszumanska.debian.org
Wed Sep 23 13:00:08 UTC 2015


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

daube-guest pushed a commit to branch master
in repository scythe.

commit 35310669034984a1541e525df81439b0c9fb725d
Author: Kevin Murray <spam at kdmurray.id.au>
Date:   Wed Sep 23 22:59:42 2015 +1000

    Use dpkg-parsechangelog to set package version
---
 ...Get-package-version-from-dpkg-parsechangelog.patch | 19 +++++++++++++++++++
 debian/patches/series                                 |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/0003-Get-package-version-from-dpkg-parsechangelog.patch b/debian/patches/0003-Get-package-version-from-dpkg-parsechangelog.patch
new file mode 100644
index 0000000..73faedf
--- /dev/null
+++ b/debian/patches/0003-Get-package-version-from-dpkg-parsechangelog.patch
@@ -0,0 +1,19 @@
+From: Kevin Murray <spam at kdmurray.id.au>
+Date: Wed, 23 Sep 2015 22:58:03 +1000
+Subject: Get package version from dpkg-parsechangelog
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 3cabbbd..4715a3e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ PROGRAM_NAME = scythe
+-VERSION = 0.994
++VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+ CC = gcc
+ DEBUG ?= 0
+ ifeq ($(DEBUG), 1)
diff --git a/debian/patches/series b/debian/patches/series
index f51dd92..9530a50 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Makefile-cleaning-for-debian.patch
 0002-Fix-typos-in-binary.patch
+0003-Get-package-version-from-dpkg-parsechangelog.patch

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



More information about the debian-med-commit mailing list