-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
executable file
·35 lines (27 loc) · 1018 Bytes
/
build.sh
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
29
30
31
32
33
34
35
#MODE=RELEASE MAIN=temp lib/compile.sh; exit
#rm -rf ../bin/*;fpc test.pas -B -dDEBUG -Ci -Co -CO -Cr -CR -Ct -O- -g -gt -gl -gh -Sa -OoDFA -veiwnhb -FE../bin/ -Fulib -Filib && ../bin/test; exit
# Generate helper files
perl -w regen.pl || exit 1
MODE="DEBUG"
# DEFINES="-dPLAY_IN_TEST_EDEN"
# DEFINES="-dPLAY_IN_TEST_DOORLAND"
# DEFINES="-dPLAY_IN_TEST_STAIRLAND -B"
# play as Flathead, password zorkmid
# (the world doesn't support adding players, you need to hard-code them in)
# (don't forget to comment out genesis below)
# temporary workaround for weird compiler bug
rm -f ../bin/*.ppu
pushd . > /dev/null
# DEFINES="-dVERBOSE"
MAIN="tests" MODE="$MODE" PATHS="-Futests" DEFINES="$DEFINES" lib/compile.sh || exit 1
popd > /dev/null
echo
rm -f world.dat
pushd . > /dev/null
MAIN="genesis" MODE=$MODE DEFINES="$DEFINES" lib/compile.sh || exit 1
popd > /dev/null
echo
pushd . > /dev/null
CUDDLYWORLDPORT="10001" MAIN="cuddlyworld" MODE=$MODE DEFINES="$DEFINES" lib/compile.sh || exit 1
popd > /dev/null
echo