diff options
Diffstat (limited to 'build.bash')
| -rwxr-xr-x | build.bash | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/build.bash b/build.bash new file mode 100755 index 0000000..f2b188d --- /dev/null +++ b/build.bash | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #!/usr/bin/env -vS bash | ||
| 2 | |||
| 3 | SOMEWHAT_REAL_DIR="$(realpath "$0")" | ||
| 4 | FILENAME="${SOMEWHAT_REAL_DIR##*/}" | ||
| 5 | PATH_TO="${SOMEWHAT_REAL_DIR/$FILENAME/}" | ||
| 6 | |||
| 7 | function runInLocal() { | ||
| 8 | if [[ "$(pwd)/" != "$PATH_TO" ]]; then | ||
| 9 | (cd "$PATH_TO" && bash "$FILENAME") | ||
| 10 | exit $? | ||
| 11 | fi | ||
| 12 | |||
| 13 | return 0 | ||
| 14 | } | ||
| 15 | |||
| 16 | function buildTDLIB() { | ||
| 17 | |||
| 18 | |||
| 19 | return 0 | ||
| 20 | } | ||
| 21 | |||
| 22 | function buildJar() { | ||
| 23 | |||
| 24 | return 0 | ||
| 25 | } | ||
| 26 | |||
| 27 | runInLocal && \ | ||
| 28 | buildTDLIB && \ | ||
| 29 | buildJar | ||
| 30 | |||
| 31 | exit "$?" | ||
