Subversion Repositories Tewi

Rev

Rev 251 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 251 Rev 288
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: installer.sh 251 2024-10-03 21:15:19Z nishi $
2
# $Id: installer.sh 288 2024-10-09 03:06:28Z nishi $
3
 
3
 
4
if [ "x$1" = "x" ]; then
4
if [ "x$1" = "x" ]; then
5
	echo "Usage: $0 win32"
5
	echo "Usage: $0 win32"
6
	echo "       $0 win64"
6
	echo "       $0 win64"
7
	exit 1
7
	exit 1
Line 18... Line 18...
18
rm -f install-nossl.exe install-ssl.exe
18
rm -f install-nossl.exe install-ssl.exe
19
 
19
 
20
VERSION=`make get-version`
20
VERSION=`make get-version`
21
 
21
 
22
sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
22
sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
-
 
23
if [ ! "x$2" = "x" ]; then
-
 
24
	sed -i "s/undef $2/define $2/g" config.h
-
 
25
fi
23
 
26
 
24
make clean || fail
27
make clean || fail
25
make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
28
make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
26
cp Server/tewi.exe tewi.exe
29
cp Server/tewi.exe tewi.exe
27
make clean || fail
30
make clean || fail
Line 34... Line 37...
34
cp install.exe ../install-nossl.exe
37
cp install.exe ../install-nossl.exe
35
rm -f tewi.exe tewi-service.exe
38
rm -f tewi.exe tewi-service.exe
36
cd ..
39
cd ..
37
 
40
 
38
sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
41
sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
-
 
42
if [ ! "x$2" = "x" ]; then
-
 
43
	sed -i "s/undef $2/define $2/g" config.h
-
 
44
fi
39
 
45
 
40
make clean || fail
46
make clean || fail
41
make PLATFORM=$1 -j4 PREFIX=C:/Tewi|| fail
47
make PLATFORM=$1 -j4 PREFIX=C:/Tewi|| fail
42
cp Server/tewi.exe tewi.exe
48
cp Server/tewi.exe tewi.exe
43
make clean || fail
49
make clean || fail