Subversion Repositories Tewi

Rev

Rev 129 | Rev 131 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/bin/sh
# $Id: installer.sh 130 2024-09-23 10:25:58Z nishi $

fail() {
        rm -f tewi-service.exe
        rm -f tewi.exe
        rm -f generated.conf
        rm -f itworks.html
        exit 1
}

rm -f install-nossl.exe install-ssl.exe

VERSION=`make get-version`

sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h

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
../Tool/genconf "C:/Tewi" > ../generated.conf
../Tool/itworks > ../itworks.html
makensis -DVERSION=$VERSION install.nsi
cp install.exe ../install-nossl.exe
rm -f tewi.exe tewi-service.exe
cd ..

sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h

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
../Tool/genconf "C:/Tewi" > ../generated.conf
../Tool/itworks > ../itworks.html
makensis -DVERSION=$VERSION install.nsi
cp install.exe ../install-ssl.exe
rm -f tewi.exe tewi-service.exe
cd ..

rm itworks.html
rm generated.conf