[Python-modules-commits] r22634 - in packages/python-doublex/trunk (debian debian/rules)
davidvilla-guest at users.alioth.debian.org
davidvilla-guest at users.alioth.debian.org
Mon Sep 3 17:52:37 UTC 2012
Date: Monday, September 3, 2012 @ 17:52:36
Author: davidvilla-guest
Revision: 22634
get-orig-source
Modified:
packages/python-doublex/trunk/debian/ (properties)
packages/python-doublex/trunk/debian/rules
Property changes on: packages/python-doublex/trunk/debian
___________________________________________________________________
Modified: mergeWithUpstream
- yes
+ 1
Modified: packages/python-doublex/trunk/debian/rules
===================================================================
--- packages/python-doublex/trunk/debian/rules 2012-09-03 16:26:15 UTC (rev 22633)
+++ packages/python-doublex/trunk/debian/rules 2012-09-03 17:52:36 UTC (rev 22634)
@@ -1,5 +1,15 @@
#!/usr/bin/make -f
-# -*- makefile -*-
+VERSION=$(shell head -n 1 debian/changelog | cut -f2 -d " " | tr -d "()" | cut -f1 -d "-")
+APP=python-doublex
+ORIG_REPO=hg clone http://bitbucket.org/DavidVilla/python-doublex
+ORIG_DIR=$(APP)-$(VERSION)
+EXCLUDE=--exclude=debian --exclude=\*~ --exclude=.hg --exclude=.svn --exclude=\*.pyc
+
%:
dh $@ --with=python2
+
+get-orig-source:
+ $(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