[Python-apps-commits] r7376 - in packages/slapos.core/trunk/debian (rules)
arnau at users.alioth.debian.org
arnau at users.alioth.debian.org
Fri Jul 29 09:31:23 UTC 2011
Date: Friday, July 29, 2011 @ 09:31:22
Author: arnau
Revision: 7376
Handle Git snapshots of stable releases.
Modified:
packages/slapos.core/trunk/debian/rules
Modified: packages/slapos.core/trunk/debian/rules
===================================================================
--- packages/slapos.core/trunk/debian/rules 2011-07-29 09:01:17 UTC (rev 7375)
+++ packages/slapos.core/trunk/debian/rules 2011-07-29 09:31:22 UTC (rev 7376)
@@ -18,8 +18,13 @@
SRC_VERSION := $(shell dpkg-parsechangelog | \
sed -ne 's/^Version: \([^-]\+\)-.*/\1/p')
+ifdef $(findstring 'git', $(SRC_VERSION))
GIT_VERSION := $(shell echo $(SRC_VERSION) | \
sed -ne 's/.*git\([a-z0-9]\+\)/\1/p')
+else
+GIT_VERSION := $(shell echo $(SRC_VERSION) | \
+ sed -ne 's/\([0-9]\+:\)\?\([0-9.]\+\)/\2/p')
+endif
TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
More information about the Python-apps-commits
mailing list