diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 09:16:19 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-03 09:16:25 +0200 |
commit | 96b8244902d322071cd03801521e5e9c8f91ca5f (patch) | |
tree | a0063d4e43cfb0f8e18bcb2be9d487e02b280564 /run | |
parent | 8109afc3258da79a7d5f27b1c0eeaac667ab491e (diff) | |
download | RustAndDust-96b8244902d322071cd03801521e5e9c8f91ca5f.zip RustAndDust-96b8244902d322071cd03801521e5e9c8f91ca5f.tar.gz |
./run [cat]
Diffstat (limited to 'run')
-rwxr-xr-x | run | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -1,14 +1,18 @@ #! /bin/bash [ -d out ] && rm -fr out -if [ $# -gt 0 ]; then - if [ "$1" = "c" ]; then - ./gradlew clean packs desktop:run - elif [ "$1" = "a" ]; then - ./gradlew android:installDebug android:run - else - ./gradlew desktop:run - fi -else - ./gradlew desktop:run -fi +ARGS="desktop:run" + +case "$1" in + "c") + ARGS="packs $ARGS" + ;; + "a") + ARGS="android:installDebug android:run" + ;; + "t") + ARGS="core:test" + ;; +esac + +echo "./gradlew $ARGS" && ./gradlew $ARGS |