summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-27 22:11:36 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-27 22:26:28 +0100
commit8d27be639ff72ce038fbb1364a4c230c5d08a008 (patch)
treeb03a135bc63a3622e85a47ee90a88b945f5a9908
parent1a9b17edac6f153d7b71d635e70be8f81ab3cfde (diff)
downloadRustAndDust-8d27be639ff72ce038fbb1364a4c230c5d08a008.zip
RustAndDust-8d27be639ff72ce038fbb1364a4c230c5d08a008.tar.gz
run: add q options to delete sqlite DBs
-rwxr-xr-xrun7
1 files changed, 7 insertions, 0 deletions
diff --git a/run b/run
index eff0d1d..93c46a0 100755
--- a/run
+++ b/run
@@ -7,6 +7,7 @@ KEYSTORE="/home/jeyzu/etc/sync/jeyzu-key.keystore"
APK="./android/build/apk/android-release-unsigned.apk"
ZIPALIGN="/opt/android-sdk/build-tools/23.0.2/zipalign"
APK_OUT="./RustAndDust-signed-aligned.apk"
+DB_FILES="./android/assets/data/*.sqlite"
function gradlew_do()
{
@@ -31,6 +32,12 @@ case "$1" in
ARGS="android:assembleRelease$@"
gradlew_do
;;
+ "q")
+ shift;
+ ARGS="$ARGS $@"
+ rm $DB_FILES 2>/dev/null
+ gradlew_do
+ ;;
"s")
shift;
ARGS="android:assembleRelease$@"