source: Main/tags/1.05/installer.sh

Last change on this file was 131, checked in by Nishi, on Sep 23, 2024 at 7:30:00 PM

fix genconf

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