mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
32 lines
779 B
Bash
Executable File
32 lines
779 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
#If this is the build tools step, we do not bother to install/build byond
|
|
if [ "$BUILD_TOOLS" = true ]; then
|
|
exit 0
|
|
fi
|
|
|
|
echo "Combining maps for building"
|
|
if [ $BUILD_TESTING = true ]; then
|
|
python tools/travis/template_dm_generator.py
|
|
fi
|
|
|
|
source dependencies.sh
|
|
|
|
if [ -d "$HOME/BYOND/byond/bin" ] && grep -Fxq "${BYOND_MAJOR}.${BYOND_MINOR}" $HOME/BYOND/version.txt;
|
|
then
|
|
echo "Using cached directory."
|
|
else
|
|
echo "Setting up BYOND."
|
|
rm -rf "$HOME/BYOND"
|
|
mkdir -p "$HOME/BYOND"
|
|
cd "$HOME/BYOND"
|
|
curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
|
|
unzip byond.zip
|
|
rm byond.zip
|
|
cd byond
|
|
make here
|
|
echo "$BYOND_MAJOR.$BYOND_MINOR" > "$HOME/BYOND/version.txt"
|
|
cd ~/
|
|
fi
|