diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-05-04 17:59:18 +0530 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 16:12:13 -0700 |
commit | 80a277db47275afd3af41e7fa7631ebc1071ab5b (patch) | |
tree | 9c7f9d0844c183daa0bad24f4ee718e8b5f6f28f | |
parent | fb67a1e9ce9f104d6199aa0ffe40cb1d79142dbe (diff) | |
download | build-80a277db47275afd3af41e7fa7631ebc1071ab5b.zip build-80a277db47275afd3af41e7fa7631ebc1071ab5b.tar.gz build-80a277db47275afd3af41e7fa7631ebc1071ab5b.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 361a955..7fdfbba 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -727,7 +727,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 |