Actually decrement usage count when releasing a service
[gregoa/zavai.git] / debian / rules
index aa7d0b5089b7fcc932e16f1f7d63ac34c3fd6cbb..f5781f1176a46422c03a18a54df0284f9114d585 100755 (executable)
@@ -5,3 +5,13 @@
 
 %:
        dh  $@
 
 %:
        dh  $@
+
+UPSTREAMVERSION=$(shell dpkg-parsechangelog | grep ^Version | cut -f2 -d' ' | cut -f1 -d-)
+
+prepare_targz_from_git_checkout: clean
+       p=`pwd` ; \
+       pdir=`dirname $$p` ; \
+       pbase=`basename $$p` ; \
+       cd $$pdir ; \
+       GZIP=--best tar --exclude .git -czvf zavai_$(UPSTREAMVERSION).orig.tar.gz $$pbase
+