Set base C* version in debs and strip -N, ~textN, +textN

Patch by Michael Shuler, reviewed by brandonwilliams for CASSANDRA-8046


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/8952d6ca
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/8952d6ca
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/8952d6ca

Branch: refs/heads/cassandra-2.1
Commit: 8952d6ca922f8794a58af0e5914c9ecdc22dbcca
Parents: 9783777
Author: Brandon Williams <[email protected]>
Authored: Fri Oct 3 12:35:17 2014 -0500
Committer: Brandon Williams <[email protected]>
Committed: Fri Oct 3 12:36:44 2014 -0500

----------------------------------------------------------------------
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/8952d6ca/debian/rules
----------------------------------------------------------------------
diff --git a/debian/rules b/debian/rules
index 7261aa0..de5583f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 #export DH_VERBOSE=1
 
 ANT = /usr/bin/ant
-VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p')
+VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: 
\([^-|~|+]*\).*/\1/p')
 
 test:
        dh_testdir

Reply via email to