source: Main/trunk/installer.sh@ 81

Last change on this file since 81 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
Line 
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
7 mv config.h.bak config.h
8 exit 1
9}
10
11rm -f install-nossl.exe install-ssl.exe
12
13VERSION=`make get-version`
14
15sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
16
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
24makensis -DVERSION=$VERSION install.nsi
25cp install.exe ../install-nossl.exe
26rm -f tewi.exe tewi-service.exe
27cd ..
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.