[Python-apps-commits] r4054 - in packages/pythoncad/trunk/debian (rules)

dktrkranz at users.alioth.debian.org dktrkranz at users.alioth.debian.org
Thu Oct 29 22:08:18 UTC 2009


    Date: Thursday, October 29, 2009 @ 22:08:17
  Author: dktrkranz
Revision: 4054

Implementing get-orig-source

Modified:
  packages/pythoncad/trunk/debian/rules

Modified: packages/pythoncad/trunk/debian/rules
===================================================================
--- packages/pythoncad/trunk/debian/rules	2009-10-29 21:47:30 UTC (rev 4053)
+++ packages/pythoncad/trunk/debian/rules	2009-10-29 22:08:17 UTC (rev 4054)
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//')
+TAG = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//;s/.*\./R/')
+
 %:
 	dh --with quilt $@
 
@@ -12,3 +15,8 @@
 
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS
+
+get-orig-source:
+	git clone git://pythoncad.git.sourceforge.net/gitroot/pythoncad/pythoncad --branch ${TAG} ../pythoncad-${VERSION}
+	cd ../pythoncad-${VERSION} && rm -fr .git dist Doc Mac_OS_X_Read_Me.txt pippo.txt
+	tar czf ../pythoncad_${VERSION}.orig.tar.gz ../pythoncad-${VERSION} && rm -fr ../pythoncad-${VERSION}




More information about the Python-apps-commits mailing list