summaryrefslogtreecommitdiffstats
path: root/do
blob: 14ac11d66d055d15591788881e27527ddb05d5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/bash

ARGS="ctags desktop:run"

function gradlew_do()
{
    echo "./gradlew $ARGS" && ./gradlew $ARGS || exit 1
}

case "$1" in
# clean
    "c")
        shift;
        ARGS="clean assets:build $ARGS"
        gradlew_do
        ;;
# dist
    "d")
        shift;
        ARGS="desktop:dist $@"
        gradlew_do
        ;;
    *)
        ARGS="$ARGS $@"
        gradlew_do
        ;;
esac