diff options
author | twylite <twylite@crypt.co.za> | 2013-01-09 08:17:12 (GMT) |
---|---|---|
committer | twylite <twylite@crypt.co.za> | 2013-01-09 08:17:12 (GMT) |
commit | d71ff3058cd20c78c3e09da63b881f8ba0651e23 (patch) | |
tree | fb646aeed8585e9f6885022cc7d465b15f036877 | |
parent | ce0fd7d272a2797c752e4c8c328573db60ee1963 (diff) | |
download | tcl-d71ff3058cd20c78c3e09da63b881f8ba0651e23.zip tcl-d71ff3058cd20c78c3e09da63b881f8ba0651e23.tar.gz tcl-d71ff3058cd20c78c3e09da63b881f8ba0651e23.tar.bz2 |
Join paths with 'file join' not as strings to avoid platform-specific separator problems
-rwxr-xr-x | tools/tcltk-man2html.tcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/tcltk-man2html.tcl b/tools/tcltk-man2html.tcl index 1028ae5..a599e8f 100755 --- a/tools/tcltk-man2html.tcl +++ b/tools/tcltk-man2html.tcl @@ -148,6 +148,7 @@ proc parse_command_line {} { # Use default packages dir. set pkgsDir [file join $tcltkdir $tcldir pkgs] } + set pkgsDir [file normalize $pkgsDir] puts "using Packages source directory $pkgsDir" puts "verbose messages are [expr {$verbose ? {on} : {off}}]" @@ -474,10 +475,10 @@ proc plus-pkgs {type args} { if {!$build_tcl} return set result {} foreach {dir name version} $args { - set globpat $pkgsDir/$dir/doc/*.$type + set globpat [file join $pkgsDir $dir doc *.$type] if {![llength [glob -type f -nocomplain $globpat]]} { # Fallback for manpages generated using doctools - set globpat $pkgsDir/$dir/doc/man/*.$type + set globpat [file join $pkgsDir $dir doc man *.$type] if {![llength [glob -type f -nocomplain $globpat]]} { continue } |