set deps {
Tcl 8.6
Tk 8.6
sqlite3 3.47
tls 1.7
logger 0.9
}
set missing {}
foreach {dep ver} $deps {
if [catch {package require $dep $ver}] {
lappend missing $dep $ver
}
}
if {$missing != {}} {
puts stderr "can't boot! missing packages!"
foreach {dep ver} $missing {
puts stderr " need \"$dep\" v$ver+"
}
exit -1
}