[netcdf] 01/05: Add describe-current-version & get-orig-source targets to d/rules

Ross Gammon ross-guest at moszumanska.debian.org
Mon Aug 18 19:31:04 UTC 2014


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

ross-guest pushed a commit to branch master
in repository netcdf.

commit d9a581e88902a00fcd13a622447a4a322bfba643
Author: Ross Gammon <rossgammon at mail.dk>
Date:   Mon Aug 18 21:15:03 2014 +0200

    Add describe-current-version & get-orig-source targets to d/rules
    
    The latest upstream import is not from a tarball or tagged. Describe-current-version
    and get-orig-source will be explained in README.source.
---
 debian/rules | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/debian/rules b/debian/rules
index a3e36c0..5025953 100755
--- a/debian/rules
+++ b/debian/rules
@@ -75,3 +75,19 @@ install/netcdf-doc::
 	install -m 644 -o root -g root $(CURDIR)/man4/*.ps debian/tmp/usr/share/doc/netcdf/.
 	install -m 644 -o root -g root $(CURDIR)/man4/*.info debian/tmp/usr/share/info/.
 
+# Temporarily added this makefile script to help create a suitable version
+# number because upstream commits have been merged in without a release tarball
+# or tags. All below here should be removed when the next upstream tarball is
+# released.
+
+SOURCEPKG=$(shell dpkg-parsechangelog | sed -n 's/^Source: \(.*\)/\1/p')
+UPSTREAM=$(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-[^-]*/\1/p')
+SHA1=$(lastword $(subst ~g, ,$(UPSTREAM)))
+ORIG=${SOURCEPKG}_${UPSTREAM}.orig.tar.gz
+
+describe-current-version:
+	git describe --tags upstream | sed 's,^release-,,;s,-,+,;s,-,~,;'
+
+# Replace short git commit ID manually by one found by describe-current-version
+get-orig-source:
+	git archive --format=tar 4dcb673 | gzip -9 > ../$(ORIG)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/netcdf.git



More information about the Pkg-grass-devel mailing list