From 371a8b0ef6ebd85e2460b15f030506ab7e76aa0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Sieradzki?= Date: Sun, 20 Jul 2014 15:57:59 +0200 Subject: [PATCH] Add windows version of setup-ant.sh file --- setup-ant.bat | 16 ++++++++++++++++ setup-ant.sh | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 setup-ant.bat diff --git a/setup-ant.bat b/setup-ant.bat new file mode 100644 index 0000000..1f5cc06 --- /dev/null +++ b/setup-ant.bat @@ -0,0 +1,16 @@ +@ECHO OFF +SETLOCAL enabledelayedexpansion + +SET "target=android-19" + +REM Update ant setup in project and all sub-projects +SET "pattern=project.properties" +FOR /R "./external/" %%# in (*.properties) DO ( + ECHO %%~nx# | FIND "%pattern%" 1>NUL && ( + SET current_dir=%~d0%%~p# + SET current_dir=!current_dir:\=/! + ECHO Updating ant setup in "!current_dir!" + CALL android update lib-project -t %target% -p "!current_dir!" + ) +) +CALL android update project -p . --subprojects -t %target% --name Lightning diff --git a/setup-ant.sh b/setup-ant.sh index 2a0965e..528e07c 100755 --- a/setup-ant.sh +++ b/setup-ant.sh @@ -2,8 +2,9 @@ target="android-19" +# Update ant setup in project and all sub-projects for f in `find external/ -name project.properties`; do -projectdir=`dirname $f` + projectdir=`dirname $f` echo "Updating ant setup in $projectdir:" android update lib-project -p $projectdir -t $target done