Subversion Repositories Tewi

Rev

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

Rev 80 Rev 128
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: installer.sh 80 2024-09-19 11:13:18Z nishi $
2
# $Id: installer.sh 128 2024-09-23 10:19:19Z 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
	rm -f generated.conf
-
 
8
	rm -f itworks.html
7
	mv config.h.bak config.h
9
	mv config.h.bak config.h
8
	exit 1
10
	exit 1
9
}
11
}
10
 
12
 
11
rm -f install-nossl.exe install-ssl.exe
13
rm -f install-nossl.exe install-ssl.exe
Line 19... Line 21...
19
cp Server/tewi.exe tewi.exe
21
cp Server/tewi.exe tewi.exe
20
make clean || fail
22
make clean || fail
21
make PLATFORM=$1-service -j4 || fail
23
make PLATFORM=$1-service -j4 || fail
22
cp Server/tewi.exe tewi-service.exe
24
cp Server/tewi.exe tewi-service.exe
23
cd Server
25
cd Server
-
 
26
../Tool/genconf > ../generated.conf
-
 
27
../Tool/itworks > ../itworks.html
24
makensis -DVERSION=$VERSION install.nsi
28
makensis -DVERSION=$VERSION install.nsi
25
cp install.exe ../install-nossl.exe
29
cp install.exe ../install-nossl.exe
26
rm -f tewi.exe tewi-service.exe
30
rm -f tewi.exe tewi-service.exe
27
cd ..
31
cd ..
28
 
32
 
Line 33... Line 37...
33
cp Server/tewi.exe tewi.exe
37
cp Server/tewi.exe tewi.exe
34
make clean || fail
38
make clean || fail
35
make PLATFORM=$1-service -j4 || fail
39
make PLATFORM=$1-service -j4 || fail
36
cp Server/tewi.exe tewi-service.exe
40
cp Server/tewi.exe tewi-service.exe
37
cd Server
41
cd Server
-
 
42
../Tool/genconf > ../generated.conf
-
 
43
../Tool/itworks > ../itworks.html
38
makensis -DVERSION=$VERSION install.nsi
44
makensis -DVERSION=$VERSION install.nsi
39
cp install.exe ../install-ssl.exe
45
cp install.exe ../install-ssl.exe
40
rm -f tewi.exe tewi-service.exe
46
rm -f tewi.exe tewi-service.exe
41
cd ..
47
cd ..
-
 
48
 
-
 
49
rm itworks.html
-
 
50
rm generated.conf