[zoo-project] 03/07: Extract SVN revision from changelog version.
Bas Couwenberg
sebastic at debian.org
Sun Jun 26 23:08:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository zoo-project.
commit 38b98aec9cb927f284e008044dffe5c64839c5e1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Jun 26 21:55:33 2016 +0200
Extract SVN revision from changelog version.
---
debian/patches/series | 1 +
debian/patches/zoo-version.patch | 16 ++++++++++++++++
2 files changed, 17 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index a663e39..f5bab31 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
spelling-errors.patch
hardening-buildflags.patch
+zoo-version.patch
diff --git a/debian/patches/zoo-version.patch b/debian/patches/zoo-version.patch
new file mode 100644
index 0000000..6c896f4
--- /dev/null
+++ b/debian/patches/zoo-version.patch
@@ -0,0 +1,16 @@
+Description: Extract SVN revision from changelog version.
+ Package os not built from SVN, svnversion is not available.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/zoo-project/zoo-kernel/Makefile.in
++++ b/zoo-project/zoo-kernel/Makefile.in
+@@ -3,7 +3,7 @@ include ZOOMakefile.opts
+ all: version.h zoo_loader.cgi ${YAML_FILE1}
+
+ version.h:
+- echo "#define ZOO_VERSION \"`svnversion`\"" > version.h
++ echo "#define ZOO_VERSION \"`dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/.*+svn//; s/+ds[0-9]*//; s/^[0-9]://'`\"" > version.h
+
+ service.o: service.c service.h
+ gcc ${YAML_CFLAGS} ${XML2CFLAGS} ${CFLAGS} -fPIC -c service.c
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/zoo-project.git
More information about the Pkg-grass-devel
mailing list