forked from fabiangreffrath/wolf4sdl
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.sh
executable file
·56 lines (48 loc) · 1.75 KB
/
.travis.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
if [ "$ANALYZE" = "true" ] ; then
cppcheck -DO_BINARY=0 -DDEBUGKEYS -DARTSEXTERN -DDEMOSEXTERN -DPLAYDEMOLIKEORIGINAL \
-UUSE_FEATUREFLAGS -UUSE_SHADING -UUSE_DIR3DSPR -UUSE_FLOORCEILINGTEX -UUSE_HIRES \
-UUSE_PARALLAX -UUSE_CLOUDSKY -UUSE_STARSKY -UUSE_RAIN -UUSE_SNOW -UFIXRAINSNOWLEAKS \
-USPANISH -UNOTYET -U_MSC_VER \
--error-exitcode=1 --force -Idosbox . 2> stderr.txt
RET=$?
if [ -s stderr.txt ]
then
cat stderr.txt
fi
exit $RET
else
set -e
export Q=""
export CFLAGS="-Werror"
echo "Wolf3d Full v1.4 GT/ID/Activision"
make BINARY=wolf4sdl-wl6
make clean
echo "Wolf3d Full v1.4 Apogee (with ReadThis)"
sed -e "s|^\(//\)\?\(#define GOODTIMES\)|//\2|" -i version.h
make BINARY=wolf4sdl-wl6a
make clean
echo "Wolf3d Full v1.1 Apogee (with ReadThis)"
sed -e "s|^\(//\)\?\(#define APOGEE_1_1\)|\2|" -i version.h
make BINARY=wolf4sdl-wl6a1
make clean
echo "Wolf3d Shareware v1.4"
sed -e "s|^\(//\)\?\(#define APOGEE_1_1\)|//\2|" -i version.h
sed -e "s|^\(//\)\?\(#define UPLOAD\)|\2|" -i version.h
make BINARY=wolf4sdl-wl1
make clean
echo "Spear of Destiny Full and Mission Disks (and GOODTIMES for no FormGen quiz)"
sed -e "s|^\(//\)\?\(#define UPLOAD\)|//\2|" -i version.h
sed -e "s|^\(//\)\?\(#define SPEAR\)|\2|" -i version.h
sed -e "s|^\(//\)\?\(#define GOODTIMES\)|\2|" -i version.h
make BINARY=wolf4sdl-sod
make clean
echo "Spear of Destiny Demo"
sed -e "s|^\(//\)\?\(#define GOODTIMES\)|//\2|" -i version.h
sed -e "s|^\(//\)\?\(#define SPEARDEMO\)|\2|" -i version.h
make BINARY=wolf4sdl-sdm
make clean
sed -e "s|^\(//\)\?\(#define SPEAR\)|//\2|" -i version.h
sed -e "s|^\(//\)\?\(#define SPEARDEMO\)|//\2|" -i version.h
sed -e "s|^\(//\)\?\(#define GOODTIMES\)|\2|" -i version.h
fi