summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-06-25 19:48:55 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-07-03 13:07:18 -0700
commit19425dde4081f9308c4e4dab14ecfde2956d1148 (patch)
tree147ed52ddaa236e1de949d8da17668e59d22940f
parentc8a6193b0e1f7df9c78b00961d4b29db2d3b0564 (diff)
downloadvendor_replicant-19425dde4081f9308c4e4dab14ecfde2956d1148.zip
vendor_replicant-19425dde4081f9308c4e4dab14ecfde2956d1148.tar.gz
vendor_replicant-19425dde4081f9308c4e4dab14ecfde2956d1148.tar.bz2
remove leading hypen from extraversion before adding one
Change-Id: Ia33f564d272cae14f300c18d783a108ad09dfef6
-rw-r--r--config/common.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/common.mk b/config/common.mk
index 33ba366..b35e3bf 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -212,6 +212,8 @@ ifdef CM_BUILDTYPE
ifdef CM_EXTRAVERSION
# Force build type to EXPERIMENTAL
CM_BUILDTYPE := EXPERIMENTAL
+ # Remove leading dash from CM_EXTRAVERSION
+ CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
# Add leading dash to CM_EXTRAVERSION
CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
endif