summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-03 09:16:19 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-03 09:16:25 +0200
commit96b8244902d322071cd03801521e5e9c8f91ca5f (patch)
treea0063d4e43cfb0f8e18bcb2be9d487e02b280564
parent8109afc3258da79a7d5f27b1c0eeaac667ab491e (diff)
downloadRustAndDust-96b8244902d322071cd03801521e5e9c8f91ca5f.zip
RustAndDust-96b8244902d322071cd03801521e5e9c8f91ca5f.tar.gz
./run [cat]
-rwxr-xr-xrun26
1 files changed, 15 insertions, 11 deletions
diff --git a/run b/run
index 70e8d91..f346cd3 100755
--- a/run
+++ b/run
@@ -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