The following commit has been merged in the master branch:
commit 2d3b9d5382d8dd96bdf97773cd2c4822c92f4d58
Author: Dmitry E. Oboukhov <[email protected]>
Date:   Tue Jun 14 11:37:06 2011 +0400

    tarball target

diff --git a/debian/rules b/debian/rules
index 5d0bd18..3fa2a01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,13 +2,15 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 
-UPSTREAM_CLEAN_VERSION = $(shell       \
-               dpkg-parsechangelog     \
-       |       grep ^Version           \
-       |       awk '{print $$2}'       \
-       |       sed 's/[+-].*//'        \
+PACKAGE_VERSION        := $(shell              \
+               dpkg-parsechangelog             \
+       |       grep ^Version                   \
+       |       awk '{print $$2}'               \
+       |       sed 's/-[[:digit:]]\+$$//'      \
 )
 
+UPSTREAM_CLEAN_VERSION := $(shell echo $(PACKAGE_VERSION) | sed 's/[+-].*//' )
+
 DEB_DH_GENCONTROL_ARGS = -- -VUVersion=$(UPSTREAM_CLEAN_VERSION)
 
 clean::
@@ -20,3 +22,10 @@ build/frogatto:: frogatto.6
 
 frogatto.6: debian/frogatto.pod
        pod2man --section=6 $< > $@
+
+tarball:
+       cd .. && tar \
+               --exclude=debian \
+               --exclude=.git \
+               -czvf frogatto_$(PACKAGE_VERSION).orig.tar.gz \
+               frogatto-$(PACKAGE_VERSION)

-- 
2D platformer game starring a quixotic frog

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to