source: Main/trunk/installer.sh@ 355

Last change on this file since 355 was 288, checked in by Nishi, on Oct 9, 2024 at 12:06:28 PM

build stuff

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