source: Main/trunk/Koakumafile@ 236

Last change on this file since 236 was 236, checked in by Nishi, on Oct 3, 2024 at 1:50:01 PM

update koakumafile

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Koakumafile 236 2024-10-03 04:50:01Z nishi $
2# vim: syntax=tcl
3
4proc run {project_name} {
5 exec sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
6 set ::env(DISPLAY) ":0"
7 RunCommand "make clean"
8 set dirname ""
9 if { "$project_name" == "Tewi-BCC" } {
10 set ::env(LANG) "ja_JP.UTF-8"
11 set ::env(BORLAND) "C:/borland/bcc55"
12 RunCommand "make PLATFORM=bcc"
13 set ::env(LANG) "en_US.UTF-8"
14 set dirname "bcc"
15 } elseif { "$project_name" == "Tewi-VC6" } {
16 RunCommand "make PLATFORM=vc6"
17 set dirname "vc6"
18 } elseif { "$project_name" == "Tewi-Watcom" } {
19 set ::env(WATCOM) "/usr/watcom"
20 set ::env(INCLUDE) "/usr/watcom/h"
21 set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
22 RunCommand "make PLATFORM=watcom"
23 set dirname "watcom"
24 } elseif { "$project_name" == "Tewi-MinGW-32" || "$project_name" == "Tewi-MinGW-64" } {
25 RunCommand "git clone https://github.com/clamwin/openssl"
26 set bits 32
27 if { "$project_name" == "Tewi-MinGW-32" } {
28 foreach filen [glob openssl/lib/mingw/x86/*] {
29 RunCommand "cp $filen openssl/lib/"
30 }
31 } else {
32 set bits 64
33 foreach filen [glob openssl/lib/mingw/x64/*] {
34 RunCommand "cp $filen openssl/lib/"
35 }
36 }
37 set win "win$bits"
38 RunCommand "./installer.sh $win"
39 RunCommand "doas mkdir -p /raid/f/g/tewi/$win"
40 RunCommand "doas mkdir -p /raid/ftp/pub/tewi/$win"
41 RunCommand "doas cp install-ssl.exe /raid/f/g/tewi/$win/tewiinst$bits-[exec make get-version]-ssl.exe"
42 RunCommand "doas cp install-nossl.exe /raid/f/g/tewi/$win/tewiinst$bits-[exec make get-version]-nossl.exe"
43 RunCommand "doas cp install-ssl.exe /raid/ftp/pub/tewi/$win/tewiinst$bits-[exec make get-version]-ssl.exe"
44 RunCommand "doas cp install-nossl.exe /raid/ftp/pub/tewi/$win/tewiinst$bits-[exec make get-version]-nossl.exe"
45 return
46 } else {
47 RunCommand "make"
48 }
49 file mkdir workdir
50 file mkdir workdir/etc
51 file mkdir workdir/www
52 file mkdir workdir/bin
53 file mkdir workdir/modules
54 file delete archive.7z
55
56 exec ./Tool/itworks > workdir/www/index.html
57 exec ./Tool/genconf C:/Tewi modules dll > workdir/etc/tewi.conf
58 RunCommand "cp Binary/pbtewi.gif workdir/www/"
59 RunCommand "cp Server/tewi.exe workdir/bin/"
60 foreach filen [glob Module/*.dll] {
61 RunCommand "cp $filen workdir/modules/"
62 }
63 cd workdir
64 RunCommand "7z a ../archive.7z *"
65 cd ..
66 exec cat /usr/share/7z.sfx archive.7z > tewidist.exe
67 RunCommand "rm -rf workdir"
68 RunCommand "doas mkdir -p /raid/f/g/tewi/$dirname"
69 RunCommand "doas cp tewidist.exe /raid/f/g/tewi/$dirname/tewidist$dirname-[exec make get-version]-nossl.exe"
70 RunCommand "doas mkdir -p /raid/ftp/pub/tewi/$dirname"
71 RunCommand "doas cp tewidist.exe /raid/ftp/pub/tewi/$dirname/tewidist$dirname-[exec make get-version]-nossl.exe"
72}
Note: See TracBrowser for help on using the repository browser.