source: Main/trunk/installer.sh@ 96

Last change on this file since 96 was 80, checked in by Nishi, on Sep 19, 2024 at 8:13:18 PM

installer

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 882 bytes
RevLine 
[62]1#!/bin/sh
2# $Id: installer.sh 80 2024-09-19 11:13:18Z nishi $
3
4fail() {
5 rm -f tewi-service.exe
6 rm -f tewi.exe
[79]7 mv config.h.bak config.h
[62]8 exit 1
9}
10
[80]11rm -f install-nossl.exe install-ssl.exe
12
[78]13VERSION=`make get-version`
14
[79]15sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
16
[62]17make clean || fail
18make PLATFORM=$1 -j4 || fail
19cp Server/tewi.exe tewi.exe
20make clean || fail
21make PLATFORM=$1-service -j4 || fail
22cp Server/tewi.exe tewi-service.exe
23cd Server
[78]24makensis -DVERSION=$VERSION install.nsi
[79]25cp install.exe ../install-nossl.exe
[62]26rm -f tewi.exe tewi-service.exe
27cd ..
[79]28
29sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
30
31make clean || fail
32make PLATFORM=$1 -j4 || fail
33cp Server/tewi.exe tewi.exe
34make clean || fail
35make PLATFORM=$1-service -j4 || fail
36cp Server/tewi.exe tewi-service.exe
37cd Server
38makensis -DVERSION=$VERSION install.nsi
39cp install.exe ../install-ssl.exe
40rm -f tewi.exe tewi-service.exe
41cd ..
Note: See TracBrowser for help on using the repository browser.