aboutsummaryrefslogtreecommitdiffstats
path: root/android-configure.sh
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-12-03 14:11:38 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-03 14:11:38 -0800
commite48bd04f0b59e5b6a8bea4718e3b2f587c711bba (patch)
treedc50a020295572b4020ea147b0f3999d113ea523 /android-configure.sh
parent8fa4d03021927c765331f1e320226ae4923e9f6e (diff)
parenta383d02cb57dd7dadd382654175e51354073a139 (diff)
downloadexternal_qemu-e48bd04f0b59e5b6a8bea4718e3b2f587c711bba.zip
external_qemu-e48bd04f0b59e5b6a8bea4718e3b2f587c711bba.tar.gz
external_qemu-e48bd04f0b59e5b6a8bea4718e3b2f587c711bba.tar.bz2
am a383d02c: Extract emulator major version number from SDK Tools package revision.
Merge commit 'a383d02cb57dd7dadd382654175e51354073a139' into eclair-plus-aosp * commit 'a383d02cb57dd7dadd382654175e51354073a139': Extract emulator major version number from SDK Tools package revision.
Diffstat (limited to 'android-configure.sh')
-rwxr-xr-xandroid-configure.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/android-configure.sh b/android-configure.sh
index 922a0e4..742fe21 100755
--- a/android-configure.sh
+++ b/android-configure.sh
@@ -149,6 +149,15 @@ if [ "$IN_ANDROID_BUILD" = "yes" ] ; then
OPTION_TARGETS="$OPTION_TARGETS $HOST_BIN/emulator$EXE"
log "Targets : TARGETS=$OPTION_TARGETS"
fi
+
+ # find the Android SDK Tools revision number
+ TOOLS_PROPS=$ANDROID_TOP/sdk/files/tools_source.properties
+ if [ -f $TOOLS_PROPS ] ; then
+ ANDROID_SDK_TOOLS_REVISION=`awk -F= '/Pkg.Revision/ { print $2; }' $TOOLS_PROPS 2> /dev/null`
+ log "Tools : Found tools revision number $ANDROID_SDK_TOOLS_REVISION"
+ else
+ log "Tools : Could not locate $TOOLS_PROPS !?"
+ fi
fi # IN_ANDROID_BUILD = no
@@ -385,6 +394,9 @@ echo "BUILD_STANDALONE_EMULATOR := true" >> $config_mk
if [ $OPTION_DEBUG = yes ] ; then
echo "BUILD_DEBUG_EMULATOR := true" >> $config_mk
fi
+if [ -n "$ANDROID_SDK_TOOLS_REVISION" ] ; then
+ echo "ANDROID_SDK_TOOLS_REVISION := $ANDROID_SDK_TOOLS_REVISION" >> $config_mk
+fi
# Build the config-host.h file
#