[Python-modules-commits] r19994 - in packages/python-logging-extra/trunk/debian (rules)
davidvilla-guest at users.alioth.debian.org
davidvilla-guest at users.alioth.debian.org
Wed Jan 11 15:40:08 UTC 2012
Date: Wednesday, January 11, 2012 @ 15:40:07
Author: davidvilla-guest
Revision: 19994
new get-orig-dir
Modified:
packages/python-logging-extra/trunk/debian/rules
Modified: packages/python-logging-extra/trunk/debian/rules
===================================================================
--- packages/python-logging-extra/trunk/debian/rules 2012-01-10 21:49:32 UTC (rev 19993)
+++ packages/python-logging-extra/trunk/debian/rules 2012-01-11 15:40:07 UTC (rev 19994)
@@ -2,15 +2,15 @@
# -*- makefile -*-
VERSION=$(shell head -n 1 debian/changelog | cut -f2 -d " " | tr -d "()" | cut -f1 -d "-")
-ORIG_DIR=python-logging-extra-$(VERSION)
+APP=python-logging-extra
+ORIG_REPO=hg clone https://bitbucket.org/DavidVilla/python-logging-extra
+ORIG_DIR=$(APP)-$(VERSION)
+EXCLUDE=--exclude=debian --exclude=\*~ --exclude=.hg --exclude=.svn --exclude=\*.pyc
%:
dh $@ --with=python2
get-orig-source:
- mkdir -p ../tarballs
- hg clone https://bitbucket.org/davidvilla/python-logging-extra $(ORIG_DIR)
- tar --exclude=debian --exclude=\*~ --exclude=.hg --exclude=\*.pyc \
- -czf \
- ../tarballs/python-logging-extra_$(VERSION).orig.tar.gz $(ORIG_DIR)
+ $(ORIG_REPO) $(ORIG_DIR)
+ tar $(EXCLUDE) -czf ../$(APP)_$(VERSION).orig.tar.gz $(ORIG_DIR)
$(RM) -r $(ORIG_DIR)
More information about the Python-modules-commits
mailing list