Subversion Repositories Tewi

Rev

Rev 228 | Rev 230 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
210 nishi 1
# $Id: Koakumafile 229 2024-10-03 04:29:08Z nishi $
2
# vim: syntax=tcl
3
 
4
proc run {project_name} {
225 nishi 5
	exec sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
227 nishi 6
	set ::env(DISPLAY) ":0"
211 nishi 7
	RunCommand "make clean"
223 nishi 8
	if { "$project_name" == "Tewi-BCC" } {
228 nishi 9
		set ::env(LANG) "ja_JP.UTF-8"
223 nishi 10
		set ::env(BORLAND) "C:/borland/bcc55"
11
		RunCommand "make PLATFORM=bcc"
228 nishi 12
		set ::env(LANG) "en_US.UTF-8"
223 nishi 13
	} elseif { "$project_name" == "Tewi-VC6" } {
14
		RunCommand "make PLATFORM=vc6"
15
	} elseif { "$project_name" == "Tewi-Watcom" } {
16
		set ::env(WATCOM) "/usr/watcom"
17
		set ::env(INCLUDE) "/usr/watcom/h"
225 nishi 18
		set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
223 nishi 19
		RunCommand "make PLATFORM=watcom"
20
	} else {
21
		RunCommand "make"
22
	}
229 nishi 23
	file mkdir workdir
24
	file mkdir workdir/etc
25
	file mkdir workdir/www
26
	file mkdir workdir/modules
27
	file delete archive.7z
28
 
29
	exec ./Tool/itworks > workdir/www/index.html
30
	exec ./Tool/genconf C:/Tewi modules dll > workdir/etc/tewi.conf
31
	RunCommand "cp Binary/pbtewi.gif workdir/www/"
32
	RunCommand "cp Modules/*.dll workdir/modules/"
33
	cd workdir
34
	RunCommand "7z a ../archive.7z *"
35
	cd ..
36
	exec cat /usr/share/7z.sfx archive.7z > tewidist.exe
37
	RunCommand "rm -rf workdir"
210 nishi 38
}