[Python-apps-commits] r7984 - in packages/atheist/trunk/debian (rules)

davidvilla-guest at users.alioth.debian.org davidvilla-guest at users.alioth.debian.org
Tue Dec 20 18:32:03 UTC 2011


    Date: Tuesday, December 20, 2011 @ 18:32:03
  Author: davidvilla-guest
Revision: 7984

EXCLUDE

Modified:
  packages/atheist/trunk/debian/rules

Modified: packages/atheist/trunk/debian/rules
===================================================================
--- packages/atheist/trunk/debian/rules	2011-12-20 18:30:25 UTC (rev 7983)
+++ packages/atheist/trunk/debian/rules	2011-12-20 18:32:03 UTC (rev 7984)
@@ -1,17 +1,17 @@
 #!/usr/bin/make -f
 
-VERSION=$(shell head -n 1 debian/changelog | cut -f2 -d " " | tr -d "()" | cut -f1 -d "-")
 APP=atheist
+VERSION=$(shell head -n 1 debian/changelog | cut -f2 -d " " | tr -d "()" | cut -f1 -d "-")
+
 ORIG_REPO=hg clone http://hg.savannah.nongnu.org/hgweb/atheist
 ORIG_DIR=$(APP)-$(VERSION)
+EXCLUDE=$(addprefix --exclude=, debian \*~ .hg .svn .git \*.pyc)
 
 DEB_PYTHON_SYSTEM=pysupport
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
-DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
-
 BUILDDOC=$(CURDIR)/doc/_build
 HTML=$(BUILDDOC)/html
 
@@ -41,7 +41,5 @@
 
 get-orig-source:
 	$(ORIG_REPO) $(ORIG_DIR)
-	tar --exclude=debian --exclude=\*~ --exclude=.hg --exclude=\*.pyc \
-	 	-czf \
-	../tarballs/$(APP)_$(VERSION).orig.tar.gz $(ORIG_DIR)
+	tar $(EXCLUDE) -czf ../$(APP)_$(VERSION).orig.tar.gz $(ORIG_DIR)
 	$(RM) -r $(ORIG_DIR)




More information about the Python-apps-commits mailing list