Subversion Repositories Tewi

Rev

Rev 78 | Rev 80 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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