Fossil SCM

Filter out inline shell variables from tclConfig.sh because they break the build on CentOS 5 with TCL 8.4.

linuxfood 2012-05-11 21:17 trunk
Commit cc008ebab7eda7e7ebc783a2413afcc2105a080d
1 file changed +1
--- autosetup/local.tcl
+++ autosetup/local.tcl
@@ -20,10 +20,11 @@
2020
}
2121
2222
proc parse-tclconfig-sh-file {filename} {
2323
foreach line [split [readfile $filename] \n] {
2424
if {[regexp {^(TCL_[^=]*)=(.*)$} $line -> name value]} {
25
+ set value [regsub -all {\$\{.*\}} $value ""]
2526
set tclconfig($name) [string trim $value ']
2627
}
2728
}
2829
return [array get tclconfig]
2930
}
3031
--- autosetup/local.tcl
+++ autosetup/local.tcl
@@ -20,10 +20,11 @@
20 }
21
22 proc parse-tclconfig-sh-file {filename} {
23 foreach line [split [readfile $filename] \n] {
24 if {[regexp {^(TCL_[^=]*)=(.*)$} $line -> name value]} {
 
25 set tclconfig($name) [string trim $value ']
26 }
27 }
28 return [array get tclconfig]
29 }
30
--- autosetup/local.tcl
+++ autosetup/local.tcl
@@ -20,10 +20,11 @@
20 }
21
22 proc parse-tclconfig-sh-file {filename} {
23 foreach line [split [readfile $filename] \n] {
24 if {[regexp {^(TCL_[^=]*)=(.*)$} $line -> name value]} {
25 set value [regsub -all {\$\{.*\}} $value ""]
26 set tclconfig($name) [string trim $value ']
27 }
28 }
29 return [array get tclconfig]
30 }
31

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button