Skip to content

Commit b4ed3cd

Browse files
committed
add setup-ant script to set up ant builds easily
1 parent 7ca0e3e commit b4ed3cd

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
bin/
22
gen/
3+
4+
# ignore things from `android update`
5+
build.xml
6+
local.properties
7+
proguard-project.txt

setup-ant

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml`
4+
5+
# fetch target from project.properties
6+
eval `grep '^target=' project.properties`
7+
8+
echo "Setting up build for $projectname"
9+
echo ""
10+
11+
for f in `find * -name project.properties`; do
12+
projectdir=`dirname $f`
13+
echo "Updating ant setup in $projectdir:"
14+
android update lib-project -p $projectdir -t $target
15+
done
16+
android update project -p . --subprojects --name "$projectname" --target $target

0 commit comments

Comments
 (0)