remove leading hypen from extraversion before adding one

Change-Id: Ia33f564d272cae14f300c18d783a108ad09dfef6
This commit is contained in:
Chirayu Desai 2013-06-25 19:48:55 +05:30 committed by Gerrit Code Review
parent c8a6193b0e
commit 19425dde40
1 changed files with 2 additions and 0 deletions

View File

@ -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