From 8d27be639ff72ce038fbb1364a4c230c5d08a008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 27 Jan 2016 22:11:36 +0100 Subject: run: add q options to delete sqlite DBs --- run | 7 +++++++ 1 file changed, 7 insertions(+) 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$@" -- cgit v1.1-2-g2b99