tewi/installer.sh

20 lines
348 B
Bash
Raw Normal View History

#!/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 /DVERSION=\"`make get-version`\" install.nsi
rm -f tewi.exe tewi-service.exe
cd ..