[Glibc-bsd-commits] r4793 - trunk/kfreebsd-10/debian
Robert Millan
rmh at alioth.debian.org
Mon Jul 22 21:21:56 UTC 2013
Author: rmh
Date: 2013-07-22 21:21:56 +0000 (Mon, 22 Jul 2013)
New Revision: 4793
Modified:
trunk/kfreebsd-10/debian/rules
Log:
Extend svn_revision calculation to support release tags
Modified: trunk/kfreebsd-10/debian/rules
===================================================================
--- trunk/kfreebsd-10/debian/rules 2013-07-22 20:04:00 UTC (rev 4792)
+++ trunk/kfreebsd-10/debian/rules 2013-07-22 21:21:56 UTC (rev 4793)
@@ -12,7 +12,7 @@
full_version := $(shell dpkg-parsechangelog | grep ^Version: | sed -e 's/^.*: //g')
tar_version := $(shell echo $(full_version) | sed -e 's/-.*//g')
-svn_revision := $(shell echo $(full_version) | sed -e 's/.*~svn\([0-9]*\)-[0-9]*/\1/g')
+svn_revision := $(shell echo $(full_version) | sed -e 's/.*~svn\([0-9]*\)-[0-9]*/\1/g' -e 's/^$(full_version)$$/HEAD/g')
version := $(shell echo $(full_version) | sed -e 's/[~+-].*//g')
major := $(shell echo $(version) | sed -e 's/\..*//g')
revision := $(shell echo $(full_version) | sed -e 's/^[^+-]*//g')
More information about the Glibc-bsd-commits
mailing list