Subversion Repositories Tewi

Rev

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