20 lines
315 B
Bash
20 lines
315 B
Bash
|
#!/bin/sh
|
||
|
# $Id$
|
||
|
|
||
|
fail() {
|
||
|
rm -f tewi-service.exe
|
||
|
rm -f tewi.exe
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
make clean || fail
|
||
|
make PLATFORM=$1 -j4 || fail
|
||
|
cp Server/tewi.exe tewi.exe
|
||
|
make clean || fail
|
||
|
make PLATFORM=$1-service -j4 || fail
|
||
|
cp Server/tewi.exe tewi-service.exe
|
||
|
cd Server
|
||
|
makensis install.nsi
|
||
|
rm -f tewi.exe tewi-service.exe
|
||
|
cd ..
|