summaryrefslogtreecommitdiff
path: root/build.bash
diff options
context:
space:
mode:
Diffstat (limited to 'build.bash')
-rwxr-xr-xbuild.bash31
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
3SOMEWHAT_REAL_DIR="$(realpath "$0")"
4FILENAME="${SOMEWHAT_REAL_DIR##*/}"
5PATH_TO="${SOMEWHAT_REAL_DIR/$FILENAME/}"
6
7function runInLocal() {
8 if [[ "$(pwd)/" != "$PATH_TO" ]]; then
9 (cd "$PATH_TO" && bash "$FILENAME")
10 exit $?
11 fi
12
13 return 0
14}
15
16function buildTDLIB() {
17
18
19 return 0
20}
21
22function buildJar() {
23
24 return 0
25}
26
27runInLocal && \
28 buildTDLIB && \
29 buildJar
30
31exit "$?"