104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
+
+
+
+
+
+
+
+
+
+
-
+
|
set ::env(KITCREATOR_MINBUILD) 1
}
}
"staticlibssl" {
if {$value} {
set ::env(KC_TLS_LINKSSLSTATIC) 1
}
}
"staticpkgs" {
if {$value} {
set ::env(KC_TCL_STATICPKGS) 1
}
}
"tclutfmax6" {
if {$value} {
set ::env(KC_TCL_UTF_MAX) 6
}
}
"staticmk4" {
}
}
}
catch {
exec ./build/pre.sh
}
catch {
file delete "${outfile}.log"
}
catch {
set cmd [list $script $buildinfo(tcl_version) {*}$args]
set fd [open "${outfile}.log" w+]
puts $fd "Running: export KITCREATOR_PKGS=\"$::env(KITCREATOR_PKGS)\""
foreach variable [list STRIP STATICTK KITCREATOR_MINENCODINGS KITCREATOR_MINBUILD KC_TLS_LINKSSLSTATIC] {
foreach variable [list STRIP STATICTK KITCREATOR_MINENCODINGS KITCREATOR_MINBUILD KC_TLS_LINKSSLSTATIC KC_TCL_STATICPKGS KC_TCL_UTF_MAX] {
if {[info exists ::env($variable)]} {
puts $fd "Running: export $variable=\"$::env($variable)\""
}
}
puts $fd "Running: $cmd"
close $fd
|