[38440] trunk/doc-new/toc-for-chunked.tcl

raimue at macports.org raimue at macports.org
Sun Jul 20 09:08:59 PDT 2008


Revision: 38440
          http://trac.macosforge.org/projects/macports/changeset/38440
Author:   raimue at macports.org
Date:     2008-07-20 09:08:58 -0700 (Sun, 20 Jul 2008)
Log Message:
-----------
doc-new/toc-for-chunked.tcl:
Handle all *.html files no matter how they are named (support for use.id.as.filename)

Modified Paths:
--------------
    trunk/doc-new/toc-for-chunked.tcl

Modified: trunk/doc-new/toc-for-chunked.tcl
===================================================================
--- trunk/doc-new/toc-for-chunked.tcl	2008-07-20 15:49:09 UTC (rev 38439)
+++ trunk/doc-new/toc-for-chunked.tcl	2008-07-20 16:08:58 UTC (rev 38440)
@@ -9,7 +9,11 @@
 set replacement "<body>$replacement<div class=\"book\">"
 
 # Add the table of contents to all other html files.
-foreach path [glob -directory [lindex $argv 0] {*[0-9][0-9].html}] {
+foreach path [glob -directory [lindex $argv 0] {*.html}] {
+    if {$path == "index.html"} {
+        continue
+    }
+
     set file [open $path r+]
     set data [read $file]
     regsub {<body>} $data $replacement data
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080720/c503e2a2/attachment.html 


More information about the macports-changes mailing list