Subversion Repositories Tewi

Rev

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

Rev 235 Rev 236
Line 1... Line 1...
1
# $Id: Koakumafile 235 2024-10-03 04:40:57Z nishi $
1
# $Id: Koakumafile 236 2024-10-03 04:50:01Z 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"
Line 19... Line 19...
19
		set ::env(WATCOM) "/usr/watcom"
19
		set ::env(WATCOM) "/usr/watcom"
20
		set ::env(INCLUDE) "/usr/watcom/h"
20
		set ::env(INCLUDE) "/usr/watcom/h"
21
		set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
21
		set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
22
		RunCommand "make PLATFORM=watcom"
22
		RunCommand "make PLATFORM=watcom"
23
		set dirname "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
24
	} else {
46
	} else {
25
		RunCommand "make"
47
		RunCommand "make"
26
	}
48
	}
27
	file mkdir workdir
49
	file mkdir workdir
28
	file mkdir workdir/etc
50
	file mkdir workdir/etc