Subversion Repositories Tewi

Rev

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