diff --git a/setup-ant.sh b/setup-ant.sh new file mode 100755 index 0000000..790e6c0 --- /dev/null +++ b/setup-ant.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if ! type -P android &> /dev/null; then + echo "Error: 'android' utility is not in your path." + echo " Did you forget to setup the SDK?" + exit 1 +fi + +projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml` + +android update project --path . --name $projectname --subprojects diff --git a/update-ant-build.sh b/update-ant-build.sh deleted file mode 100755 index 01e5515..0000000 --- a/update-ant-build.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# make sure your Android SDK tools path is set in SDK_BASE -android update project --path . --name SecureSmartCam -