Subversion Repositories Tewi

Rev

Rev 208 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
62 nishi 1
#!/bin/sh
2
# $Id: installer.sh 251 2024-10-03 21:15:19Z nishi $
3
 
153 nishi 4
if [ "x$1" = "x" ]; then
5
	echo "Usage: $0 win32"
6
	echo "       $0 win64"
7
	exit 1
8
fi
9
 
62 nishi 10
fail() {
11
	rm -f tewi-service.exe
12
	rm -f tewi.exe
128 nishi 13
	rm -f generated.conf
14
	rm -f itworks.html
62 nishi 15
	exit 1
16
}
17
 
80 nishi 18
rm -f install-nossl.exe install-ssl.exe
19
 
78 nishi 20
VERSION=`make get-version`
21
 
79 nishi 22
sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
23
 
62 nishi 24
make clean || fail
208 nishi 25
make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
62 nishi 26
cp Server/tewi.exe tewi.exe
27
make clean || fail
208 nishi 28
make PLATFORM=$1-service -j4 PREFIX=C:/Tewi || fail
62 nishi 29
cp Server/tewi.exe tewi-service.exe
30
cd Server
208 nishi 31
../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
128 nishi 32
../Tool/itworks > ../itworks.html
251 nishi 33
makensis -DVERSION=$VERSION install.nsi || fail
79 nishi 34
cp install.exe ../install-nossl.exe
62 nishi 35
rm -f tewi.exe tewi-service.exe
36
cd ..
79 nishi 37
 
38
sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
39
 
40
make clean || fail
208 nishi 41
make PLATFORM=$1 -j4 PREFIX=C:/Tewi|| fail
79 nishi 42
cp Server/tewi.exe tewi.exe
43
make clean || fail
208 nishi 44
make PLATFORM=$1-service -j4 PREFIX=C:/Tewi || fail
79 nishi 45
cp Server/tewi.exe tewi-service.exe
46
cd Server
208 nishi 47
../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
128 nishi 48
../Tool/itworks > ../itworks.html
251 nishi 49
makensis -DVERSION=$VERSION install.nsi || fail
79 nishi 50
cp install.exe ../install-ssl.exe
51
rm -f tewi.exe tewi-service.exe
52
cd ..
128 nishi 53
 
54
rm itworks.html
55
rm generated.conf