diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-05-04 17:59:18 +0530 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-05-05 21:39:26 -0700 |
commit | c8a2187d5f6e36a44676e65d46c192baa34606c5 (patch) | |
tree | 36a15159b7f994eb3d4f5fc5dd34a20e5f1389a5 | |
parent | a0b51744bd1eb4b0c2932f5373856f9677a433b7 (diff) | |
download | build-c8a2187d5f6e36a44676e65d46c192baa34606c5.zip build-c8a2187d5f6e36a44676e65d46c192baa34606c5.tar.gz build-c8a2187d5f6e36a44676e65d46c192baa34606c5.tar.bz2 |
eat: get the proper MODVERSION
* The version in system/build.prop might be
different than what the zip is named on incremental
builds.
* Use CM_VERSION from the build system instead.
Change-Id: If4508921d8fd05219a2f358a2397a13b247065bd
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
-rw-r--r-- | envsetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh index de68db3..af322c3 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -672,7 +672,7 @@ function tapas() function eat() { if [ "$OUT" ] ; then - MODVERSION=`sed -n -e'/ro\.cm\.version/s/.*=//p' $OUT/system/build.prop` + MODVERSION=$(get_build_var CM_VERSION) ZIPFILE=cm-$MODVERSION.zip ZIPPATH=$OUT/$ZIPFILE if [ ! -f $ZIPPATH ] ; then |