1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
From: Sergei Golovan
Subject: Debian-specific patch which makes sak.tcl call the critcl
binary as tclsh8.6 /usr/bin/critcl or as tclsh9.0 /usr/bin/critcl
in order to build tcllibc both for Tcl 8.6 and 9.0.
Date: Wed, 23 Apr 2025 01:27:06 +0300
--- a/sak.tcl
+++ b/sak.tcl
@@ -1693,8 +1693,8 @@
if {"-pkg" ni $extra} { lappend extra -pkg [list $pkg] }
catch {
- puts "$critcl -cache [pwd]/.critcl -force $extra $files"
- eval exec $critcl -cache [pwd]/.critcl -force $extra $files
+ puts "[info nameofexecutable] $critcl -cache [pwd]/.critcl -force $extra $files"
+ eval exec [info nameofexecutable] $critcl -cache [pwd]/.critcl -force $extra $files
} r
puts $r
return
|