/[tewi]/Koakumafile
ViewVC logotype

Annotation of /Koakumafile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations)
Thu Oct 17 09:53:38 2024 UTC (4 weeks, 1 day ago) by nishi
Branch: MAIN
CVS Tags: v2_05A, v2_05, HEAD
update

1 nishi 1.1 # $Id: Koakumafile 371 2024-10-17 04:36:30Z nishi $
2     # vim: syntax=tcl
3    
4     proc run {project_name} {
5     set once 1
6     while 1 {
7     set suf ""
8     set arg ""
9     exec sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
10     if { $once == 0 } {
11     exec sed -i "s/undef BUILD_GUI/define BUILD_GUI/g" config.h
12     set suf "-gui"
13     set arg " BUILD_GUI"
14     }
15     set ::env(DISPLAY) ":0"
16     RunCommand "make clean"
17     set dirname ""
18     if { "$project_name" == "Tewi-BCC" } {
19     set ::env(LANG) "ja_JP.UTF-8"
20     set ::env(BORLAND) "C:/borland/bcc55"
21     RunCommand "make PLATFORM=bcc"
22     set ::env(LANG) "en_US.UTF-8"
23     set dirname "bcc"
24     } elseif { "$project_name" == "Tewi-VC6" } {
25     RunCommand "make PLATFORM=vc6"
26     set dirname "vc6"
27     } elseif { "$project_name" == "Tewi-Watcom" } {
28     set ::env(WATCOM) "/usr/watcom"
29     set ::env(INCLUDE) "/usr/watcom/h"
30     set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
31     RunCommand "make PLATFORM=watcom"
32     set dirname "watcom"
33     } elseif { "$project_name" == "Tewi-Watcom" } {
34     set ::env(WATCOM) "/usr/watcom"
35     set ::env(INCLUDE) "/usr/watcom/h"
36     set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
37     RunCommand "make PLATFORM=watcom"
38     set dirname "watcom"
39     } elseif { "$project_name" == "Tewi-OS2" } {
40     set ::env(WATCOM) "/usr/watcom"
41     set ::env(INCLUDE) "/usr/watcom/h"
42     set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
43     RunCommand "rm -rf os2 tewidist.zip"
44     RunCommand "make PLATFORM=os2"
45     RunCommand "make PLATFORM=os2 install DESTDIR=os2/"
46     cd os2/C:
47     RunCommand "zip -rv ../../tewidist.zip Tewi"
48     cd ../..
49     RunCommand "doas mkdir -p /raid/f/g/tewi/os2"
50     RunCommand "doas mkdir -p /raid/ftp/pub/tewi/os2"
51     RunCommand "doas cp tewidist.zip /raid/f/g/tewi/os2/tewidistos2-[exec make get-version]-nossl.zip"
52     RunCommand "doas cp tewidist.zip /raid/ftp/pub/tewi/os2/tewidistos2-[exec make get-version]-nossl.zip"
53     return
54     } elseif { "$project_name" == "Tewi-NetWare" } {
55     set ::env(WATCOM) "/usr/watcom"
56     set ::env(NOVELLNDK) "/usr/novell/clib"
57     set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
58     RunCommand "rm -rf netware tewidist.zip"
59     RunCommand "make PLATFORM=netware"
60     RunCommand "make PLATFORM=netware install DESTDIR=netware/"
61     cd netware/SYS:
62     RunCommand "zip -rv ../../tewidist.zip Tewi"
63     cd ../..
64     RunCommand "doas mkdir -p /raid/f/g/tewi/netware"
65     RunCommand "doas mkdir -p /raid/ftp/pub/tewi/netware"
66     RunCommand "doas cp tewidist.zip /raid/f/g/tewi/netware/tewidistnw-[exec make get-version]-nossl.zip"
67     RunCommand "doas cp tewidist.zip /raid/ftp/pub/tewi/netware/tewidistnw-[exec make get-version]-nossl.zip"
68     return
69     } elseif { "$project_name" == "Tewi-PSP" } {
70     RunCommand "./psp.sh"
71     RunCommand "doas mkdir -p /raid/f/g/tewi/psp"
72     RunCommand "doas mkdir -p /raid/ftp/pub/tewi/psp"
73     RunCommand "doas cp tewidist.zip /raid/f/g/tewi/psp/tewidistpsp-[exec make get-version]-nossl.zip"
74     RunCommand "doas cp tewidist.zip /raid/ftp/pub/tewi/psp/tewidistpsp-[exec make get-version]-nossl.zip"
75     return
76     } elseif { "$project_name" == "Tewi-PS3" } {
77     set ::env(PS3DEV) "/usr/local/ps3dev"
78     set ::env(PSL1GHT) "/usr/local/ps3dev"
79     set ::env(PATH) "$::env(PATH):/usr/local/ps3dev/bin:/usr/local/ps3dev/ppu/bin:/usr/local/ps3dev/spu/bin"
80     RunCommand "make PLATFORM=ps3"
81     RunCommand "doas mkdir -p /raid/f/g/tewi/ps3"
82     RunCommand "doas mkdir -p /raid/ftp/pub/tewi/ps3"
83     RunCommand "doas cp Server/tewi.pkg /raid/f/g/tewi/ps3/tewidistps3-[exec make get-version]-nossl.pkg"
84     RunCommand "doas cp Server/tewi.pkg /raid/ftp/pub/tewi/ps3/tewidistps3-[exec make get-version]-nossl.pkg"
85     return
86     } elseif { "$project_name" == "Tewi-MinGW-32" || "$project_name" == "Tewi-MinGW-64" } {
87     if { $once == 1 } {
88     RunCommand "rm -rf openssl"
89     RunCommand "git clone https://github.com/clamwin/openssl"
90     }
91     set bits 32
92     if { "$project_name" == "Tewi-MinGW-32" } {
93     foreach filen [glob openssl/lib/mingw/x86/*] {
94     RunCommand "cp $filen openssl/lib/"
95     }
96     } else {
97     set bits 64
98     foreach filen [glob openssl/lib/mingw/x64/*] {
99     RunCommand "cp $filen openssl/lib/"
100     }
101     }
102     set win "win$bits"
103     RunCommand "./installer.sh $win$arg"
104     RunCommand "doas mkdir -p /raid/f/g/tewi/$win"
105     RunCommand "doas mkdir -p /raid/ftp/pub/tewi/$win"
106     RunCommand "doas cp install-ssl.exe /raid/f/g/tewi/$win/tewiinst$bits-[exec make get-version]-ssl$suf.exe"
107     RunCommand "doas cp install-nossl.exe /raid/f/g/tewi/$win/tewiinst$bits-[exec make get-version]-nossl$suf.exe"
108     RunCommand "doas cp install-ssl.exe /raid/ftp/pub/tewi/$win/tewiinst$bits-[exec make get-version]-ssl$suf.exe"
109     RunCommand "doas cp install-nossl.exe /raid/ftp/pub/tewi/$win/tewiinst$bits-[exec make get-version]-nossl$suf.exe"
110     if { $once == 0 } {
111     return
112     }
113     set once 0
114     continue
115     } else {
116     RunCommand "make"
117     return
118     }
119     file mkdir workdir
120     file mkdir workdir/etc
121     file mkdir workdir/www
122     file mkdir workdir/bin
123     file mkdir workdir/modules
124     file delete archive.7z
125    
126     exec ./Tool/itworks > workdir/www/index.html
127     exec ./Tool/genconf C:/Tewi modules dll > workdir/etc/tewi.conf
128     RunCommand "cp Binary/pbtewi.gif workdir/www/"
129     RunCommand "cp Server/tewi.exe workdir/bin/"
130     foreach filen [glob Module/*.dll] {
131     RunCommand "cp $filen workdir/modules/"
132     }
133     RunCommand "reisen Tewi\\ HTTPd @reisen.conf tewidist.exe"
134     RunCommand "rm -rf workdir"
135     RunCommand "doas mkdir -p /raid/f/g/tewi/$dirname"
136     RunCommand "doas cp tewidist.exe /raid/f/g/tewi/$dirname/tewidist$dirname-[exec make get-version]-nossl$suf.exe"
137     RunCommand "doas mkdir -p /raid/ftp/pub/tewi/$dirname"
138     RunCommand "doas cp tewidist.exe /raid/ftp/pub/tewi/$dirname/tewidist$dirname-[exec make get-version]-nossl$suf.exe"
139     if { $once == 0 } {
140     return
141     }
142     set once 0
143     }
144     }

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev