[Python-apps-commits] r8633 - in packages/ttb/trunk/debian (changelog rules)
schot-guest at users.alioth.debian.org
schot-guest at users.alioth.debian.org
Mon May 7 09:48:48 UTC 2012
Date: Monday, May 7, 2012 @ 09:48:47
Author: schot-guest
Revision: 8633
Add get-orig-source target to create orig tarball from git.
Modified:
packages/ttb/trunk/debian/changelog
packages/ttb/trunk/debian/rules
Modified: packages/ttb/trunk/debian/changelog
===================================================================
--- packages/ttb/trunk/debian/changelog 2012-05-06 18:13:07 UTC (rev 8632)
+++ packages/ttb/trunk/debian/changelog 2012-05-07 09:48:47 UTC (rev 8633)
@@ -13,8 +13,9 @@
* Switch to source format 3.0 (quilt).
* Update debian/copyright to machine-readable format 1.0.
* debian/patches/01-small_update.diff: Drop, applied upstream.
+ * Add get-orig-source target to create orig tarball from git.
- -- Jeroen Schot <schot at a-eskwadraat.nl> Wed, 25 Apr 2012 15:50:16 +0200
+ -- Jeroen Schot <schot at a-eskwadraat.nl> Mon, 07 May 2012 11:47:25 +0200
ttb (1.0.1-3) unstable; urgency=medium
Modified: packages/ttb/trunk/debian/rules
===================================================================
--- packages/ttb/trunk/debian/rules 2012-05-06 18:13:07 UTC (rev 8632)
+++ packages/ttb/trunk/debian/rules 2012-05-07 09:48:47 UTC (rev 8633)
@@ -1,4 +1,21 @@
#!/usr/bin/make -f
+VERSION = 1.0.1+20101115
+TARBALL = ttb_$(VERSION).orig.tar.gz
+GITURL = git://gitorious.org/ttb/mainline.git
+GITREV = v1.0.1-5-gd6b60a8
+
%:
dh $@ --with=python2
+
+# Adapted from http://wiki.debian.org/SandroTosi/Svn_get-orig-source
+get-orig-source:
+ rm -rf get-orig-source $(TARBALL)
+ mkdir get-orig-source
+ git clone -q $(GITURL) get-orig-source/ttb-$(VERSION).orig
+ cd get-orig-source/ttb-$(VERSION).orig && git checkout -q ${GITREV}
+ GZIP='--best --no-name' \
+ tar czf $(TARBALL) --exclude-vcs -C get-orig-source ttb-${VERSION}.orig
+ rm -rf get-orig-source
+
+.PHONY: get-orig-source
More information about the Python-apps-commits
mailing list