[Python-modules-commits] r17425 - in packages/python-peak.util/trunk/debian (get-orig-source.mk)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon Jun 13 05:30:43 UTC 2011


    Date: Monday, June 13, 2011 @ 05:30:42
  Author: eriol-guest
Revision: 17425

Get version from debian/changelog

Modified:
  packages/python-peak.util/trunk/debian/get-orig-source.mk

Modified: packages/python-peak.util/trunk/debian/get-orig-source.mk
===================================================================
--- packages/python-peak.util/trunk/debian/get-orig-source.mk	2011-06-13 02:07:30 UTC (rev 17424)
+++ packages/python-peak.util/trunk/debian/get-orig-source.mk	2011-06-13 05:30:42 UTC (rev 17425)
@@ -11,8 +11,9 @@
 #       - tmpdir handling is not fully safe (e.g., no "mktemp -d")
 
 GOSTMP = $$PWD/get-orig-source.tmp
-ORIGNAME = $(PKG)-$(shell date +%Y%m%d)
-ORIGTARBALL = $(PKG)_$(shell date +%Y%m%d).orig.tar.gz
+VERSION = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | sed 's,-.*,,')
+ORIGNAME = $(PKG)-$(VERSION)
+ORIGTARBALL = $(PKG)_$(VERSION).orig.tar.gz
 
 get-orig-source: $(patsubst %,%/get-orig-source,$(UPSTREAMS))
 	cd $(GOSTMP) && \




More information about the Python-modules-commits mailing list