Added a '-' so that CM_EXTRAVERSION isn't squished into the device name

Patch 2: Fixed the possibility of no CM_EXTRAVERSION resulting in 2 '-' at the end of the file name.

Change-Id: I3025977a5da1e28247c74416e1ac50fc6901eb23
This commit is contained in:
Trevor Gill 2012-05-21 20:13:17 -04:00 committed by Steve Kondik
parent 4fda87afff
commit dd55974cfe
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ ifdef CM_NIGHTLY
CM_VERSION :=$(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-NIGHTLY-$(CM_BUILD)
else
ifdef CM_SNAPSHOT
ifdef CM_EXTRAVERSION
CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
endif
CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-SNAPSHOT-$(CM_BUILD)$(CM_EXTRAVERSION)
else
ifdef CM_RELEASE