The following commit has been merged in the master branch:
commit 36a813596de7d2692dc3c676d1345c753da5684b
Author: Dmitry E. Oboukhov <[email protected]>
Date:   Fri Sep 23 10:24:46 2011 +0400

    tarball target

diff --git a/debian/rules b/debian/rules
index 4779d23..4a43e23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,11 @@ DEB_CMAKE_EXTRA_FLAGS      := -DWITH_SERVER=1 \
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/cmake.mk
 
+
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog \
+       |grep ^Version|awk '{print $$2}'|sed 's/-[[:digit:]]\+$$//' \
+)
+
 clean::
        rm -fr tmp-icon stamp-icon
 
@@ -22,3 +27,11 @@ stamp-icon:
                mkdir -p tmp-icon/$$dirname/apps; \
                convert $$icon tmp-icon/$$dirname/apps/$$basename.png; \
        done
+
+tarball:
+       cd .. && \
+       tar --exclude=debian \
+               --exclude=.git \
+               -czf hedgewars_$(UPSTREAM_VERSION).orig.tar.gz \
+               hedgewars-$(UPSTREAM_VERSION)
+

-- 
Worms style game

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

Reply via email to