Skip to content

Commit

Permalink
add setup-ant script to set up ant builds easily
Browse files Browse the repository at this point in the history
  • Loading branch information
eighthave committed Sep 5, 2014
1 parent 7ca0e3e commit b4ed3cd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
bin/
gen/

# ignore things from `android update`
build.xml
local.properties
proguard-project.txt
16 changes: 16 additions & 0 deletions setup-ant
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml`

# fetch target from project.properties
eval `grep '^target=' project.properties`

echo "Setting up build for $projectname"
echo ""

for f in `find * -name project.properties`; do
projectdir=`dirname $f`
echo "Updating ant setup in $projectdir:"
android update lib-project -p $projectdir -t $target
done
android update project -p . --subprojects --name "$projectname" --target $target

0 comments on commit b4ed3cd

Please sign in to comment.