Subversion Repositories Tewi

Rev

Rev 231 | Rev 233 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 231 Rev 232
Line 1... Line 1...
1
# $Id: Koakumafile 231 2024-10-03 04:30:37Z nishi $
1
# $Id: Koakumafile 232 2024-10-03 04:33:13Z nishi $
2
# vim: syntax=tcl
2
# vim: syntax=tcl
3
 
3
 
4
proc run {project_name} {
4
proc run {project_name} {
5
	exec sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
5
	exec sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
6
	set ::env(DISPLAY) ":0"
6
	set ::env(DISPLAY) ":0"
7
	RunCommand "make clean"
7
	RunCommand "make clean"
-
 
8
	set dirname ""
8
	if { "$project_name" == "Tewi-BCC" } {
9
	if { "$project_name" == "Tewi-BCC" } {
9
		set ::env(LANG) "ja_JP.UTF-8"
10
		set ::env(LANG) "ja_JP.UTF-8"
10
		set ::env(BORLAND) "C:/borland/bcc55"
11
		set ::env(BORLAND) "C:/borland/bcc55"
11
		RunCommand "make PLATFORM=bcc"
12
		RunCommand "make PLATFORM=bcc"
12
		set ::env(LANG) "en_US.UTF-8"
13
		set ::env(LANG) "en_US.UTF-8"
-
 
14
		set dirname "bcc"
13
	} elseif { "$project_name" == "Tewi-VC6" } {
15
	} elseif { "$project_name" == "Tewi-VC6" } {
14
		RunCommand "make PLATFORM=vc6"
16
		RunCommand "make PLATFORM=vc6"
-
 
17
		set dirname "vc6"
15
	} elseif { "$project_name" == "Tewi-Watcom" } {
18
	} elseif { "$project_name" == "Tewi-Watcom" } {
16
		set ::env(WATCOM) "/usr/watcom"
19
		set ::env(WATCOM) "/usr/watcom"
17
		set ::env(INCLUDE) "/usr/watcom/h"
20
		set ::env(INCLUDE) "/usr/watcom/h"
18
		set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
21
		set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
19
		RunCommand "make PLATFORM=watcom"
22
		RunCommand "make PLATFORM=watcom"
-
 
23
		set dirname "watcom"
20
	} else {
24
	} else {
21
		RunCommand "make"
25
		RunCommand "make"
22
	}
26
	}
23
	file mkdir workdir
27
	file mkdir workdir
24
	file mkdir workdir/etc
28
	file mkdir workdir/etc
Line 35... Line 39...
35
	cd workdir
39
	cd workdir
36
	RunCommand "7z a ../archive.7z *"
40
	RunCommand "7z a ../archive.7z *"
37
	cd ..
41
	cd ..
38
	exec cat /usr/share/7z.sfx archive.7z > tewidist.exe
42
	exec cat /usr/share/7z.sfx archive.7z > tewidist.exe
39
	RunCommand "rm -rf workdir"
43
	RunCommand "rm -rf workdir"
-
 
44
	RunCommand "doas mkdir -p /raid-nishi/f/g/tewi/$dirname"
-
 
45
	RunCommand "doas cp tewidist.exe /raid-nishi/f/g/tewi/$dirname/tewidist$dirname-[exec make get-version]-nossl.exe"
40
}
46
}