[Python-modules-commits] r18389 - in packages/python-psutil/trunk/debian (changelog rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Aug 28 22:44:03 UTC 2011


    Date: Sunday, August 28, 2011 @ 22:44:02
  Author: morph
Revision: 18389

* debian/rules
  - add 'get-orig-source' target

Modified:
  packages/python-psutil/trunk/debian/changelog
  packages/python-psutil/trunk/debian/rules

Modified: packages/python-psutil/trunk/debian/changelog
===================================================================
--- packages/python-psutil/trunk/debian/changelog	2011-08-28 22:38:40 UTC (rev 18388)
+++ packages/python-psutil/trunk/debian/changelog	2011-08-28 22:44:02 UTC (rev 18389)
@@ -1,8 +1,10 @@
 python-psutil (0.3.0+r1112-1) UNRELEASED; urgency=low
 
   * New upstream SVN snapshot
+  * debian/rules
+    - add 'get-orig-source' target
 
- -- Sandro Tosi <morph at debian.org>  Mon, 29 Aug 2011 00:38:19 +0200
+ -- Sandro Tosi <morph at debian.org>  Mon, 29 Aug 2011 00:43:43 +0200
 
 python-psutil (0.3.0-2) unstable; urgency=low
 

Modified: packages/python-psutil/trunk/debian/rules
===================================================================
--- packages/python-psutil/trunk/debian/rules	2011-08-28 22:38:40 UTC (rev 18388)
+++ packages/python-psutil/trunk/debian/rules	2011-08-28 22:44:02 UTC (rev 18389)
@@ -23,3 +23,17 @@
 
 override_dh_installdocs:
 	dh_installdocs -X.DS_Store
+
+PACKAGE = python-psutil
+SRC_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | sed 's/^Version: \(.*\)-.*/\1/')
+SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' )
+TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
+
+.PHONY: get-orig-source
+get-orig-source:
+	rm -rf get-orig-source $(TARBALL)
+	mkdir get-orig-source
+	svn export -r $(SVN_REVISION) http://psutil.googlecode.com/svn/trunk get-orig-source/$(PACKAGE)-$(SRC_VERSION)
+	tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION)
+	rm -rf get-orig-source
+	echo "  "$(TARBALL)" created; move it to the right destination to build the package"




More information about the Python-modules-commits mailing list