summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-09-03 09:38:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-09-03 09:38:53 (GMT)
commit1c4e863ae740db90e703ed179f28740dbbfd256d (patch)
treeada0a28a7908f8c42801f075d591ada795909d5e /tools
parent42dd647d50995c33e37029d56d3d9880ba7ad75e (diff)
downloadtcl-1c4e863ae740db90e703ed179f28740dbbfd256d.zip
tcl-1c4e863ae740db90e703ed179f28740dbbfd256d.tar.gz
tcl-1c4e863ae740db90e703ed179f28740dbbfd256d.tar.bz2
Start producing HTML out for Thread package. Consequent bugfixes:
* tools/tcltk-man2html.tcl (plus-pkgs): Improve the package documentation search pattern to support the doctoos-generated directory structure. * tools/tcltk-man2html-utils.tcl (output-name): Made this more resilient against misformatted NAME sections, induced by import of Thread package documentation into Tcl doc tree.
Diffstat (limited to 'tools')
-rw-r--r--tools/tcltk-man2html-utils.tcl4
-rwxr-xr-xtools/tcltk-man2html.tcl13
2 files changed, 12 insertions, 5 deletions
diff --git a/tools/tcltk-man2html-utils.tcl b/tools/tcltk-man2html-utils.tcl
index ce962d8..a910777 100644
--- a/tools/tcltk-man2html-utils.tcl
+++ b/tools/tcltk-man2html-utils.tcl
@@ -6,7 +6,7 @@
## Copyright (c) 1995-1997 Roger E. Critchlow Jr
## Copyright (c) 2004-2010 Donal K. Fellows
##
-## CVS: $Id: tcltk-man2html-utils.tcl,v 1.6 2010/01/14 13:59:05 dkf Exp $
+## CVS: $Id: tcltk-man2html-utils.tcl,v 1.7 2010/09/03 09:38:53 dkf Exp $
set ::manual(report-level) 1
@@ -592,7 +592,7 @@ proc output-IP-list {context code rest} {
proc output-name {line} {
global manual
# split name line into pieces
- regexp {^([^-]+) - (.*)$} $line all head tail
+ regexp {^([^-]+) - (.*)$} [regsub -all {[ \n\r\t]+} $line " "] -> head tail
# output line to manual page untouched
man-puts "$head &mdash; $tail"
# output line to long table of contents
diff --git a/tools/tcltk-man2html.tcl b/tools/tcltk-man2html.tcl
index aa1fabb..258ee20 100755
--- a/tools/tcltk-man2html.tcl
+++ b/tools/tcltk-man2html.tcl
@@ -18,9 +18,9 @@ package require Tcl 8.6
# Copyright (c) 1995-1997 Roger E. Critchlow Jr
# Copyright (c) 2004-2010 Donal K. Fellows
#
-# CVS: $Id: tcltk-man2html.tcl,v 1.48 2010/06/13 22:19:54 dkf Exp $
+# CVS: $Id: tcltk-man2html.tcl,v 1.49 2010/09/03 09:38:53 dkf Exp $
-regexp {\d+\.\d+} {$Revision: 1.48 $} ::Version
+regexp {\d+\.\d+} {$Revision: 1.49 $} ::Version
set ::CSSFILE "docs.css"
##
@@ -769,7 +769,13 @@ proc plus-pkgs {type args} {
set result {}
foreach {dir name} $args {
set globpat $tcltkdir/$tcldir/pkgs/$dir/doc/*.$type
- if {![llength [glob -nocomplain $globpat]]} continue
+ if {![llength [glob -nocomplain $globpat]]} {
+ # Fallback for manpages generated using doctools
+ set globpat $tcltkdir/$tcldir/pkgs/$dir/doc/man/*.$type
+ if {![llength [glob -nocomplain $globpat]]} {
+ continue
+ }
+ }
switch $type {
n {
set title "$name Package Commands"
@@ -901,6 +907,7 @@ try {
set packageDirNameMap {
itcl {[incr Tcl]}
tdbc {TDBC}
+ Thread Thread
}
}