summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-27 10:25:56 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-27 10:25:56 +0100
commita92265e0d0d9104b40dd2cda926c6762107b3481 (patch)
tree73e588b11934b018a7d6a980a82dda9bc6a9f88f
parent3cd7596919dc6f12a6cd0884e5a2fe383e30c959 (diff)
downloadRustAndDust-a92265e0d0d9104b40dd2cda926c6762107b3481.zip
RustAndDust-a92265e0d0d9104b40dd2cda926c6762107b3481.tar.gz
run: add 'd' -> desktop:dist
-rwxr-xr-xrun19
1 files changed, 17 insertions, 2 deletions
diff --git a/run b/run
index ab38200..504ff6e 100755
--- a/run
+++ b/run
@@ -3,23 +3,38 @@
ARGS="desktop:run"
+function gradlew_do()
+{
+ echo "./gradlew $ARGS" && ./gradlew $ARGS
+}
+
case "$1" in
"c")
- ARGS="clean packs $ARGS"
+ ARGS="clean packs $ARGS $@"
+ gradlew_do
shift
;;
"a")
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"
+ gradlew_do
shift
;;
"j")
ARGS="core:compileJava"
+ gradlew_do
+ shift
+ ;;
+ "d")
+ ARGS="desktop:dist"
+ gradlew_do
+ mv ./desktop/build/libs/desktop-1.0.jar TankOnTank.jar
shift
;;
esac
-echo "./gradlew $ARGS $@" && ./gradlew $ARGS $@