aboutsummaryrefslogtreecommitdiffstats
path: root/service/do.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-05-23 19:00:18 +0200
committerLouis Burda <quent.burda@gmail.com>2021-05-23 19:00:18 +0200
commitddf5c236446767b60718b7254a4e4d3c5e4c941c (patch)
tree92a5d4aa322547c54dc5f06d5a78b2a8bb765695 /service/do.sh
parentf75abdd928302e8ef555e1f10b19b6105609775e (diff)
downloadenowars5-service-stldoctor-ddf5c236446767b60718b7254a4e4d3c5e4c941c.tar.gz
enowars5-service-stldoctor-ddf5c236446767b60718b7254a4e4d3c5e4c941c.zip
added test command for upload custom file, various smaller changes, fixed float little-endian loading
Diffstat (limited to 'service/do.sh')
-rw-r--r--service/do.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/do.sh b/service/do.sh
index fd3b8b0..d0ac5ed 100644
--- a/service/do.sh
+++ b/service/do.sh
@@ -55,16 +55,17 @@ elif [ "$1" == "test" ]; then
SRCDIR="$PWD/src" DATADIR="$PWD/container/data" bash "tests/test.sh" ${@:2}
elif [ "$1" == "make" ]; then
# build a normal version
- cd src
+ pushd src
if [ -e ".safebuild" ]; then
make clean
rm ".safebuild"
fi
make
+ popd
elif [ "$1" == "make-safe" ]; then
# build a 'safe' version with flagstore patches
- cd src
+ pushd src
make clean
touch ".safebuild"
@@ -78,6 +79,7 @@ elif [ "$1" == "make-safe" ]; then
PREFIX="safe_" make
rm safe_*
+ popd
else
echo "USAGE: do.sh (compose) [args..]"
echo "EXAMPLES:"