source: Main/trunk/installer.sh@ 79

Last change on this file since 79 was 79, checked in by Nishi, on Sep 19, 2024 at 8:11:55 PM

installer

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