Subversion Repositories Tewi

Rev

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

Rev 77 Rev 78
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: installer.sh 77 2024-09-19 10:54:21Z nishi $
2
# $Id: installer.sh 78 2024-09-19 10:56:38Z 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
	exit 1
7
	exit 1
8
}
8
}
9
 
9
 
-
 
10
VERSION=`make get-version`
-
 
11
 
10
make clean || fail
12
make clean || fail
11
make PLATFORM=$1 -j4 || fail
13
make PLATFORM=$1 -j4 || fail
12
cp Server/tewi.exe tewi.exe
14
cp Server/tewi.exe tewi.exe
13
make clean || fail
15
make clean || fail
14
make PLATFORM=$1-service -j4 || fail
16
make PLATFORM=$1-service -j4 || fail
15
cp Server/tewi.exe tewi-service.exe
17
cp Server/tewi.exe tewi-service.exe
16
cd Server
18
cd Server
17
makensis /DVERSION=\"`make get-version`\" install.nsi
19
makensis -DVERSION=$VERSION install.nsi
18
rm -f tewi.exe tewi-service.exe
20
rm -f tewi.exe tewi-service.exe
19
cd ..
21
cd ..