[netpanzer] 42/118: Add get-orig-source to debian/rules

Markus Koschany apo at moszumanska.debian.org
Sun Jun 5 10:18:16 UTC 2016


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

apo pushed a commit to branch master
in repository netpanzer.

commit a5738334affd79b17275c5f761bd27aa512218ab
Author: Alexander Reichle-Schmehl <tolimar at debian.org>
Date:   Thu Jan 19 16:39:09 2012 +0000

    Add get-orig-source to debian/rules
---
 debian/changelog |  3 ++-
 debian/rules     | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c13fa5e..c570370 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,8 +9,9 @@ netpanzer (0.8.4-1) UNRELEASED; urgency=low
   [ Alexander Reichle-Schmehl ]
   * Add myself as uploader
   * New upstream release (Closes: #595024)
+  * Add get-orig-source to debian/rules
 
- -- Alexander Reichle-Schmehl <tolimar at debian.org>  Thu, 19 Jan 2012 17:17:16 +0100
+ -- Alexander Reichle-Schmehl <tolimar at debian.org>  Thu, 19 Jan 2012 17:38:39 +0100
 
 netpanzer (0.8.2-2) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index f7eb5a3..731ac26 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,8 @@
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
+
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -90,5 +92,13 @@ binary-arch: build install
 	dh_md5sums -a
 	dh_builddeb -a
 
+get-orig-source:
+	rm -rf get-orig-source netpanzer_$(SRC_VERSION).orig.tar.gz
+	mkdir get-orig-source
+	svn export svn://svn.berlios.de/netpanzer/tags/netpanzer/$(SRC_VERSION) get-orig-source/netpanzer-$(SRC_VERSION)
+	GZIP='--best --no-name' tar czf netpanzer_$(SRC_VERSION).orig.tar.gz -C get-orig-source netpanzer-$(SRC_VERSION)
+	rm -rf get-orig-source
+	echo "  "netpanzer_$(SRC_VERSION).orig.tar.gz" created; move it to the right destination to build the package"
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install

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



More information about the Pkg-games-commits mailing list