Fossil SCM

Fixed an incorrect Tcl string comparison checked in with [e449cb09].

wyoung 2018-09-02 21:46 tclsh-macos
Commit c94617b57d0325009d20ccca1532c03b60cc43169576249d13d30b12d6830d1e
1 file changed +3 -1
+3 -1
--- auto.def
+++ auto.def
@@ -46,11 +46,13 @@
4646
# autosetup won't build jimsh0 at all if it can find tclsh itself.
4747
# Ironically, this means we may right now be running under either jimsh0
4848
# or a version of tclsh that we find unsuitable below!
4949
cc-check-progs tclsh
5050
set hbtd /usr/local/Cellar/tcl-tk
51
-if {[get-define TCLSH] != false} {
51
+if {[string equal false [get-define TCLSH]]} {
52
+ msg-result "WARNING: 'make test' will not run here."
53
+} else {
5254
set v [exec /bin/sh -c "echo 'puts \$tcl_version' | tclsh"]
5355
if {[expr $v >= 8.6]} {
5456
msg-result "Found Tclsh version $v in the PATH."
5557
define TCLSH tclsh
5658
} elseif {[file isdirectory $hbtd]} {
5759
--- auto.def
+++ auto.def
@@ -46,11 +46,13 @@
46 # autosetup won't build jimsh0 at all if it can find tclsh itself.
47 # Ironically, this means we may right now be running under either jimsh0
48 # or a version of tclsh that we find unsuitable below!
49 cc-check-progs tclsh
50 set hbtd /usr/local/Cellar/tcl-tk
51 if {[get-define TCLSH] != false} {
 
 
52 set v [exec /bin/sh -c "echo 'puts \$tcl_version' | tclsh"]
53 if {[expr $v >= 8.6]} {
54 msg-result "Found Tclsh version $v in the PATH."
55 define TCLSH tclsh
56 } elseif {[file isdirectory $hbtd]} {
57
--- auto.def
+++ auto.def
@@ -46,11 +46,13 @@
46 # autosetup won't build jimsh0 at all if it can find tclsh itself.
47 # Ironically, this means we may right now be running under either jimsh0
48 # or a version of tclsh that we find unsuitable below!
49 cc-check-progs tclsh
50 set hbtd /usr/local/Cellar/tcl-tk
51 if {[string equal false [get-define TCLSH]]} {
52 msg-result "WARNING: 'make test' will not run here."
53 } else {
54 set v [exec /bin/sh -c "echo 'puts \$tcl_version' | tclsh"]
55 if {[expr $v >= 8.6]} {
56 msg-result "Found Tclsh version $v in the PATH."
57 define TCLSH tclsh
58 } elseif {[file isdirectory $hbtd]} {
59

Keyboard Shortcuts

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