source: Main/trunk/installer.sh@ 184

Last change on this file since 184 was 153, checked in by Nishi, on Sep 25, 2024 at 7:25:12 PM

add usage

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
RevLine 
[62]1#!/bin/sh
2# $Id: installer.sh 153 2024-09-25 10:25:12Z nishi $
3
[153]4if [ "x$1" = "x" ]; then
5 echo "Usage: $0 win32"
6 echo " $0 win64"
7 exit 1
8fi
9
[62]10fail() {
11 rm -f tewi-service.exe
12 rm -f tewi.exe
[128]13 rm -f generated.conf
14 rm -f itworks.html
[62]15 exit 1
16}
17
[80]18rm -f install-nossl.exe install-ssl.exe
19
[78]20VERSION=`make get-version`
21
[79]22sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
23
[62]24make clean || fail
25make PLATFORM=$1 -j4 || fail
26cp Server/tewi.exe tewi.exe
27make clean || fail
28make PLATFORM=$1-service -j4 || fail
29cp Server/tewi.exe tewi-service.exe
30cd Server
[131]31../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
[128]32../Tool/itworks > ../itworks.html
[78]33makensis -DVERSION=$VERSION install.nsi
[79]34cp install.exe ../install-nossl.exe
[62]35rm -f tewi.exe tewi-service.exe
36cd ..
[79]37
38sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
39
40make clean || fail
41make PLATFORM=$1 -j4 || fail
42cp Server/tewi.exe tewi.exe
43make clean || fail
44make PLATFORM=$1-service -j4 || fail
45cp Server/tewi.exe tewi-service.exe
46cd Server
[131]47../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
[128]48../Tool/itworks > ../itworks.html
[79]49makensis -DVERSION=$VERSION install.nsi
50cp install.exe ../install-ssl.exe
51rm -f tewi.exe tewi-service.exe
52cd ..
[128]53
54rm itworks.html
55rm generated.conf
Note: See TracBrowser for help on using the repository browser.