Revision 9443ce52
setup-ant.sh | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
|
3 | 3 |
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' app/res/values/strings.xml` |
4 |
target="android-19" |
|
4 | 5 |
|
5 | 6 |
echo "Setting up build for $projectname" |
6 | 7 |
echo "" |
... | ... | |
8 | 9 |
for f in `find external/ -name project.properties`; do |
9 | 10 |
projectdir=`dirname $f` |
10 | 11 |
echo "Updating ant setup in $projectdir:" |
11 |
android update lib-project --path $projectdir
|
|
12 |
android update lib-project -p $projectdir -t $target
|
|
12 | 13 |
done |
13 |
|
|
14 |
if [ -f app/libs/android-support-v4.jar ]; then |
|
15 |
for f in `find external/ -name android-support-v4.jar`; do |
|
16 |
libsdir=`dirname $f` |
|
17 |
echo "Updating support library in $libsdir:" |
|
18 |
cp -f app/libs/android-support-v4.jar $libsdir |
|
19 |
done |
|
20 |
fi |
|
21 |
|
|
22 |
if [ -f app/libs/sqlcipher.jar ]; then |
|
23 |
for f in `find external/ -name sqlcipher.jar`; do |
|
24 |
libsdir=`dirname $f` |
|
25 |
echo "Updating support library in $libsdir:" |
|
26 |
cp -f app/libs/sqlcipher.jar $libsdir |
|
27 |
done |
|
28 |
fi |
|
29 |
|
|
30 |
android update project --path app/ --subprojects --name "$projectname" |
|
14 |
android update project -p app/ --subprojects --name "$projectname" -t $target |
Also available in: Unified diff