summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-01 21:19:19 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-01 21:19:19 +0200
commit97c4b0a57016bf319d0b282b5f40c098474f2ed1 (patch)
tree80d4e708e92fa231817aabfc2d030316da31d02e
parentfaf8301a06f171539f7e7ad3b9034c54aa740c31 (diff)
downloadRustAndDust-97c4b0a57016bf319d0b282b5f40c098474f2ed1.zip
RustAndDust-97c4b0a57016bf319d0b282b5f40c098474f2ed1.tar.gz
improve run cmd
-rwxr-xr-xrun13
1 files changed, 12 insertions, 1 deletions
diff --git a/run b/run
index 9d3b6db..70e8d91 100755
--- a/run
+++ b/run
@@ -1,3 +1,14 @@
#! /bin/bash
[ -d out ] && rm -fr out
-./gradlew clean packs desktop:run
+
+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