summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-12-06 12:31:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-06-15 15:58:13 +0100
commit0d61e5dcdbe2cec9df33ac22e3f0e4fbd6a07517 (patch)
tree52c90a06990f04a5c3b8051c392ff1f58b29c920 /odk
parentaf2053c318564ef56235482f058d30ae26ecf77d (diff)
odk - Fix reading OOVERSION from settings/dk.mk
(cherry picked from commit decff1733c9cdeca40fc0438a1333de236c954cd) Conflicts: odk/setsdkenv_unix Change-Id: I4d78ebbb9f7b6d188dcba2140f26a17a8c17732f
Diffstat (limited to 'odk')
-rwxr-xr-xodk/config/setsdkenv_unix2
1 files changed, 1 insertions, 1 deletions
diff --git a/odk/config/setsdkenv_unix b/odk/config/setsdkenv_unix
index 85925feb3c81..10db4dac5a62 100755
--- a/odk/config/setsdkenv_unix
+++ b/odk/config/setsdkenv_unix
@@ -22,7 +22,7 @@ HOSTNAME=`hostname`
CURRENTDIR=`/bin/pwd`
SDKTMPDIR=`dirname $0`
OO_SDK_HOME=`(cd $SDKTMPDIR && pwd && cd $CURRENTDIR) | head -n 1`
-OOVERSION=`cat $OO_SDK_HOME/settings/dk.mk | tail -2 | head -n 1 | cut -d"=" -f2 | cut -d"." -f1,2`
+OOVERSION=`cat $OO_SDK_HOME/settings/dk.mk | tail -3 | head -n 1 | cut -d"=" -f2 | cut -d"." -f1,2`
if [ "$OSTYPE" = "Darwin" ]
then
OO_SDK_NAME=`basename $OO_SDK_HOME`