[Python-modules-commits] r1434 - /packages/pygments/trunk/debian/rules

pox-guest at users.alioth.debian.org pox-guest at users.alioth.debian.org
Wed Oct 25 23:24:12 UTC 2006


Author: pox-guest
Date: Wed Oct 25 23:24:11 2006
New Revision: 1434

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=1434
Log:
add rule to generate tarball with current SVN version

Modified:
    packages/pygments/trunk/debian/rules

Modified: packages/pygments/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pygments/trunk/debian/rules?rev=1434&op=diff
==============================================================================
--- packages/pygments/trunk/debian/rules (original)
+++ packages/pygments/trunk/debian/rules Wed Oct 25 23:24:11 2006
@@ -41,4 +41,14 @@
 
 binary: binary-indep binary-arch
 
+tarball:
+	@REV=`LC_ALL=C svn --non-interactive info http://trac.pocoo.org/repos/pygments/trunk \
+		| grep Revision | cut -c 11-`; \
+	if [ "$$REV" = "" ]; then exit 1; fi; \
+	svn -q export http://trac.pocoo.org/repos/pygments/trunk pygments-svn$${REV}; \
+	VERSION=`grep "__version__ = " pygments-svn$${REV}/pygments/__init__.py | cut -d "'" -f 2`; \
+	tar -zcf ../pygments_$$VERSION~svn$${REV}.orig.tar.gz pygments-svn$${REV}; \
+	rm -rf pygments-svn$${REV}; \
+	echo file ../pygments_$$VERSION~svn$${REV}.orig.tar.gz successfully created
+
 .PHONY: build clean binary-indep binary-arch binary install configure




More information about the Python-modules-commits mailing list