diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-27 14:35:19 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-27 14:35:19 +0100 |
commit | daeebba49e1744603776ea1a732f17b606df3898 (patch) | |
tree | 28d850fe6d5d9c8981339946a5b35bd3b7f7d8bf /run | |
parent | a92265e0d0d9104b40dd2cda926c6762107b3481 (diff) | |
download | RustAndDust-daeebba49e1744603776ea1a732f17b606df3898.zip RustAndDust-daeebba49e1744603776ea1a732f17b606df3898.tar.gz |
fix run
Diffstat (limited to 'run')
-rwxr-xr-x | run | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -1,7 +1,7 @@ #! /bin/bash [ -d out ] && rm -fr out -ARGS="desktop:run" +ARGS="desktop:run $@" function gradlew_do() { @@ -12,29 +12,27 @@ case "$1" in "c") ARGS="clean packs $ARGS $@" gradlew_do - shift ;; "a") - ARGS="android:installDebug android:run" + ARGS="android:installDebug android:run $@" gradlew_do echo "on failure: sudo adb kill-server; (sudo adb start-server;) sudo adb devices" - shift ;; "t") - ARGS="core:test" + ARGS="core:test $@" gradlew_do - shift ;; "j") - ARGS="core:compileJava" + ARGS="core:compileJava $@" gradlew_do - shift ;; "d") - ARGS="desktop:dist" + ARGS="desktop:dist $@" gradlew_do mv ./desktop/build/libs/desktop-1.0.jar TankOnTank.jar - shift + ;; + *) + gradlew_do ;; esac |