trustedintents / trustedintents / setup-ant @ cba1dc86
History | View | Annotate | Download (575 Bytes)
1 |
#!/bin/sh |
---|---|
2 |
|
3 |
set -e |
4 |
set -x |
5 |
|
6 |
if ! which android > /dev/null; then |
7 |
if [ -z $ANDROID_HOME ]; then |
8 |
if [ -e ~/.android/bashrc ]; then |
9 |
. ~/.android/bashrc |
10 |
else |
11 |
echo "'android' not found, ANDROID_HOME must be set!" |
12 |
exit |
13 |
fi |
14 |
else |
15 |
export PATH="${ANDROID_HOME}/tools:$PATH" |
16 |
fi |
17 |
fi |
18 |
|
19 |
# fetch target from project.properties |
20 |
eval `grep '^target=' project.properties` |
21 |
|
22 |
CURDIR=`pwd` |
23 |
|
24 |
android update lib-project --path ${CURDIR} --target $target |
25 |
android update test-project --path ${CURDIR}/../test --main ${CURDIR} |