summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--products/common_versions.mk8
-rwxr-xr-xtools/squisher2
2 files changed, 3 insertions, 7 deletions
diff --git a/products/common_versions.mk b/products/common_versions.mk
index d8e2db1..2d226b5 100644
--- a/products/common_versions.mk
+++ b/products/common_versions.mk
@@ -5,18 +5,14 @@ PRODUCT_VERSION_MAINTENANCE = 0-RC0
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_DISPLAY_ID=GWK74
ifdef CYANOGEN_NIGHTLY
- MODVERSION := CyanogenMod-$(PRODUCT_VERSION_MAJOR)-$(shell date +%m%d%Y)-NIGHTLY-$(PRODUCT_RELEASE_NAME)
- CMVERSION := CyanogenMod-$(PRODUCT_VERSION_MAJOR)-$(shell date +%m%d%Y)-NIGHTLY-$(CM_BUILD)
+ CMVERSION := CyanogenMod-$(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-NIGHTLY-$(CM_BUILD)
else
ifdef CYANOGEN_RELEASE
- MODVERSION := CyanogenMod-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(PRODUCT_RELEASE_NAME)
CMVERSION := CyanogenMod-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
else
- MODVERSION := CyanogenMod-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(PRODUCT_RELEASE_NAME)-KANG
CMVERSION := CyanogenMod-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)-KANG
endif
endif
PRODUCT_PROPERTY_OVERRIDES += \
- ro.modversion=$(MODVERSION) \
- ro.cm.version=$(CMVERSION) \ No newline at end of file
+ ro.modversion=$(CMVERSION) \ No newline at end of file
diff --git a/tools/squisher b/tools/squisher
index 5ae0879..8323c0d 100755
--- a/tools/squisher
+++ b/tools/squisher
@@ -138,7 +138,7 @@ rm -rf $REPACK/ota/recovery
find $REPACK/ota/system/lib/modules -name "*.ko" -print0 | xargs -0 arm-eabi-strip --strip-unneeded
# Determine what to name the new signed package
- MODVERSION=`sed -n -e'/ro\.cm\.version/s/^.*CyanogenMod-//p' $REPACK/ota/system/build.prop`
+ MODVERSION=`sed -n -e'/ro\.modversion/s/^.*CyanogenMod-//p' $REPACK/ota/system/build.prop`
: ${MODVERSION:=nightly}
OUTFILE=$OUT/update-cm-$MODVERSION-signed.zip