Subversion Repositories Tewi

Rev

Rev 80 | Rev 129 | 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 128 2024-09-23 10:19:19Z nishi $
3
 
4
fail() {
5
	rm -f tewi-service.exe
6
	rm -f tewi.exe
128 nishi 7
	rm -f generated.conf
8
	rm -f itworks.html
79 nishi 9
	mv config.h.bak config.h
62 nishi 10
	exit 1
11
}
12
 
80 nishi 13
rm -f install-nossl.exe install-ssl.exe
14
 
78 nishi 15
VERSION=`make get-version`
16
 
79 nishi 17
sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
18
 
62 nishi 19
make clean || fail
20
make PLATFORM=$1 -j4 || fail
21
cp Server/tewi.exe tewi.exe
22
make clean || fail
23
make PLATFORM=$1-service -j4 || fail
24
cp Server/tewi.exe tewi-service.exe
25
cd Server
128 nishi 26
../Tool/genconf > ../generated.conf
27
../Tool/itworks > ../itworks.html
78 nishi 28
makensis -DVERSION=$VERSION install.nsi
79 nishi 29
cp install.exe ../install-nossl.exe
62 nishi 30
rm -f tewi.exe tewi-service.exe
31
cd ..
79 nishi 32
 
33
sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
34
 
35
make clean || fail
36
make PLATFORM=$1 -j4 || fail
37
cp Server/tewi.exe tewi.exe
38
make clean || fail
39
make PLATFORM=$1-service -j4 || fail
40
cp Server/tewi.exe tewi-service.exe
41
cd Server
128 nishi 42
../Tool/genconf > ../generated.conf
43
../Tool/itworks > ../itworks.html
79 nishi 44
makensis -DVERSION=$VERSION install.nsi
45
cp install.exe ../install-ssl.exe
46
rm -f tewi.exe tewi-service.exe
47
cd ..
128 nishi 48
 
49
rm itworks.html
50
rm generated.conf