summaryrefslogtreecommitdiffstats
path: root/tools/addVerToFile.tcl
blob: bfc39e2786c018de5be8108fbf1f06e9bc86f780 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env tclsh
if {$argc < 1} {
    error "need a filename argument"
}
lassign $argv filename
set f [open $filename a]
puts $f "TCL_VERSION=[info tclversion]"
puts $f "TCL_PATCHLEVEL=[info patchlevel]"
close $f