Author: tolimar Date: 2012-01-19 16:39:09 +0000 (Thu, 19 Jan 2012) New Revision: 13139
Modified: packages/trunk/netpanzer/debian/changelog packages/trunk/netpanzer/debian/rules Log: Add get-orig-source to debian/rules Modified: packages/trunk/netpanzer/debian/changelog =================================================================== --- packages/trunk/netpanzer/debian/changelog 2012-01-19 16:18:24 UTC (rev 13138) +++ packages/trunk/netpanzer/debian/changelog 2012-01-19 16:39:09 UTC (rev 13139) @@ -9,8 +9,9 @@ [ Alexander Reichle-Schmehl ] * Add myself as uploader * New upstream release (Closes: #595024) + * Add get-orig-source to debian/rules - -- Alexander Reichle-Schmehl <[email protected]> Thu, 19 Jan 2012 17:17:16 +0100 + -- Alexander Reichle-Schmehl <[email protected]> Thu, 19 Jan 2012 17:38:39 +0100 netpanzer (0.8.2-2) unstable; urgency=low Modified: packages/trunk/netpanzer/debian/rules =================================================================== --- packages/trunk/netpanzer/debian/rules 2012-01-19 16:18:24 UTC (rev 13138) +++ packages/trunk/netpanzer/debian/rules 2012-01-19 16:39:09 UTC (rev 13139) @@ -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 @@ 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 _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

