1 set -e 2 THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 pushd $THIS_DIR 4 ant release 5 jarsigner -verbose -keystore ~/.android/debug.keystore -storepass android -keypass android $THIS_DIR/bin/netstats-*.apk androiddebugkey 6 cp $THIS_DIR/bin/netstats-*.apk $THIS_DIR/../../devlib/instrument/netstats/netstats.apk 7 ant clean 8 popd 9