aboutsummaryrefslogtreecommitdiff
path: root/make-index
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2012-02-10 14:35:54 +1000
committerSteve Bennett <steveb@workware.net.au>2012-02-14 10:40:28 +1000
commit0cbd7a6ae916d4f52d75ede2df57ca2c7a80ab28 (patch)
treef8df86bf255a292f4695df89c113a27877130486 /make-index
parentad3b3c48c9d7e91af3e3f72837c4aa6a4b496df0 (diff)
downloadjimtcl-0cbd7a6ae916d4f52d75ede2df57ca2c7a80ab28.zip
jimtcl-0cbd7a6ae916d4f52d75ede2df57ca2c7a80ab28.tar.gz
jimtcl-0cbd7a6ae916d4f52d75ede2df57ca2c7a80ab28.tar.bz2
make-index is *much* slower than it should be
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'make-index')
-rwxr-xr-xmake-index6
1 files changed, 5 insertions, 1 deletions
diff --git a/make-index b/make-index
index e743cd8..6f23cca 100755
--- a/make-index
+++ b/make-index
@@ -68,5 +68,9 @@ lappend mapping @INSERTINDEX@ [join $index \n]
# Output the result
foreach line $lines {
- puts [string map $mapping $line]
+ if {[string first ` $line] >= 0} {
+ puts [string map $mapping $line]
+ } else {
+ puts $line
+ }
}