diff options
Diffstat (limited to 'tools/man2help.tcl')
-rw-r--r-- | tools/man2help.tcl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/man2help.tcl b/tools/man2help.tcl index 6c8356c..018fa84 100644 --- a/tools/man2help.tcl +++ b/tools/man2help.tcl @@ -10,7 +10,8 @@ # PASS 1 # -set man2tclprog [file join [file dirname [info script]] man2tcl.exe] +set man2tclprog [file join [file dirname [info script]] \ + man2tcl[file extension [info nameofexecutable]]] proc generateContents {basename version files} { global curID topics @@ -26,10 +27,10 @@ proc generateContents {basename version files} { foreach package [getPackages] { foreach section [getSections $package] { if {![info exists lastSection]} { - set lastSection {} + set lastSection {} } if {[string compare $lastSection $section]} { - puts $fd "1 $section" + puts $fd "1 $section" } set lastSection $section set lastTopic {} |