[Python-modules-commits] r17137 - in packages/python-keyczar/trunk/debian (rules)

chrisk-guest at users.alioth.debian.org chrisk-guest at users.alioth.debian.org
Tue May 24 22:07:36 UTC 2011


    Date: Tuesday, May 24, 2011 @ 22:07:35
  Author: chrisk-guest
Revision: 17137

Add get-orig-source target to debian/rules using svn-orig-source.sh

Modified:
  packages/python-keyczar/trunk/debian/rules

Modified: packages/python-keyczar/trunk/debian/rules
===================================================================
--- packages/python-keyczar/trunk/debian/rules	2011-05-24 21:58:22 UTC (rev 17136)
+++ packages/python-keyczar/trunk/debian/rules	2011-05-24 22:07:35 UTC (rev 17137)
@@ -6,6 +6,17 @@
 
 PYVERS = $(shell pyversions -r -v)
 
+# For svn-orig-source.sh
+PKGDIR = $(dir $(firstword $(MAKEFILE_LIST)))
+UPNAME = $(shell dpkg-parsechangelog -l$(PKGDIR)/changelog | \
+		sed -nre 's,^Source:\s+(.*),\1,p')
+UPVER = $(shell dpkg-parsechangelog -l$(PKGDIR)/changelog | \
+		sed -nre 's,^Version:\s+(.*)\+svn([0-9]+)-.*,\1,p')
+SVNREV = $(shell dpkg-parsechangelog -l$(PKGDIR)/changelog | \
+		sed -nre 's,^Version:\s+(.*)\+svn([0-9]+)-.*,\2,p')
+SVNURL = http://keyczar.googlecode.com/svn/trunk/python/
+export UPNAME UPVER SVNURL SVNREV
+
 %:
 	dh $@
 
@@ -21,3 +32,7 @@
     		fi; \
 	done
 endif
+
+.PHONY: get-orig-source
+get-orig-source:
+	sh $(PKGDIR)/svn-orig-source.sh




More information about the Python-modules-commits mailing list