source: Main/trunk/Koakumafile@ 233

Last change on this file since 233 was 233, checked in by Nishi, on Oct 3, 2024 at 1:34:27 PM

update koakumafile

  • Property svn:keywords set to Id
File size: 1.4 KB
RevLine 
[210]1# $Id: Koakumafile 233 2024-10-03 04:34:27Z nishi $
2# vim: syntax=tcl
3
4proc run {project_name} {
[225]5 exec sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
[227]6 set ::env(DISPLAY) ":0"
[211]7 RunCommand "make clean"
[232]8 set dirname ""
[223]9 if { "$project_name" == "Tewi-BCC" } {
[228]10 set ::env(LANG) "ja_JP.UTF-8"
[223]11 set ::env(BORLAND) "C:/borland/bcc55"
12 RunCommand "make PLATFORM=bcc"
[228]13 set ::env(LANG) "en_US.UTF-8"
[232]14 set dirname "bcc"
[223]15 } elseif { "$project_name" == "Tewi-VC6" } {
16 RunCommand "make PLATFORM=vc6"
[232]17 set dirname "vc6"
[223]18 } elseif { "$project_name" == "Tewi-Watcom" } {
19 set ::env(WATCOM) "/usr/watcom"
20 set ::env(INCLUDE) "/usr/watcom/h"
[225]21 set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
[223]22 RunCommand "make PLATFORM=watcom"
[232]23 set dirname "watcom"
[223]24 } else {
25 RunCommand "make"
26 }
[229]27 file mkdir workdir
28 file mkdir workdir/etc
29 file mkdir workdir/www
30 file mkdir workdir/modules
31 file delete archive.7z
32
33 exec ./Tool/itworks > workdir/www/index.html
34 exec ./Tool/genconf C:/Tewi modules dll > workdir/etc/tewi.conf
35 RunCommand "cp Binary/pbtewi.gif workdir/www/"
[231]36 foreach filen [glob Module/*.dll] {
37 RunCommand "cp $filen workdir/modules/"
38 }
[229]39 cd workdir
40 RunCommand "7z a ../archive.7z *"
41 cd ..
42 exec cat /usr/share/7z.sfx archive.7z > tewidist.exe
43 RunCommand "rm -rf workdir"
[233]44 RunCommand "doas mkdir -p /raid/f/g/tewi/$dirname"
45 RunCommand "doas cp tewidist.exe /raid/f/g/tewi/$dirname/tewidist$dirname-[exec make get-version]-nossl.exe"
[210]46}
Note: See TracBrowser for help on using the repository browser.