diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 22:11:36 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 22:26:28 +0100 |
commit | 8d27be639ff72ce038fbb1364a4c230c5d08a008 (patch) | |
tree | b03a135bc63a3622e85a47ee90a88b945f5a9908 /run | |
parent | 1a9b17edac6f153d7b71d635e70be8f81ab3cfde (diff) | |
download | RustAndDust-8d27be639ff72ce038fbb1364a4c230c5d08a008.zip RustAndDust-8d27be639ff72ce038fbb1364a4c230c5d08a008.tar.gz |
run: add q options to delete sqlite DBs
Diffstat (limited to 'run')
-rwxr-xr-x | run | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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$@" |