summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-02-26 10:25:35 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-02-26 10:25:35 (GMT)
commit3434566a605bb11e0f5a78d6f3996ede7f728e68 (patch)
tree57f0a1bb365b2be820fd92fe51a03a105ebb2275
parent85c76436fded17c553a0f921bf68497af3adef0f (diff)
downloadtcl-3434566a605bb11e0f5a78d6f3996ede7f728e68.zip
tcl-3434566a605bb11e0f5a78d6f3996ede7f728e68.tar.gz
tcl-3434566a605bb11e0f5a78d6f3996ede7f728e68.tar.bz2
Remap non-alphanumeric sequences in manpage filenames to single underscores.
-rw-r--r--ChangeLog31
-rwxr-xr-xunix/installManPage7
2 files changed, 22 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index b4d08ce..cec1c2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,21 +1,26 @@
+2010-02-26 Donal K. Fellows <dkf@users.sf.net>
+
+ * unix/installManPage: Remap non-alphanumeric sequences in filenames
+ to single underscores (especially colons).
+
2010-02-26 Pat Thoyts <patthoyts@users.sourceforge.net>
- * tests/zlib.test: Add tests for [Bug 2818131] which was crashing
- with mismatched zlib algorithms used in combination with
- gets. This issue has been fixed by Andreas last commit.
+ * tests/zlib.test: Add tests for [Bug 2818131] which was crashing with
+ mismatched zlib algorithms used in combination with gets. This issue
+ has been fixed by Andreas's last commit.
2010-02-25 Jan Nijtmans <nijtmans@users.sf.net>
- * generic/tclHash.c [ tcl-Feature Requests-2958832 ] Further
- * generic/tclLiteral.c speed-up of ouster-hash function.
- * generic/tclObj.c
- * generic/tclCkalloc.c Eliminate various unnecessary (ClientData)
- * generic/tclTest.c type casts.
- * generic/tclTestObj.c
- * generic/tclTestProcBodyObj.c
- * unix/tclUnixTest.c
- * unix/tclUnixTime.c
- * unix/tclXtTest.c
+ * generic/tclHash.c: [FRQ 2958832]: Further speed-up of the
+ * generic/tclLiteral.c: ouster-hash function.
+ * generic/tclObj.c:
+ * generic/tclCkalloc.c: Eliminate various unnecessary (ClientData)
+ * generic/tclTest.c: type casts.
+ * generic/tclTestObj.c:
+ * generic/tclTestProcBodyObj.c:
+ * unix/tclUnixTest.c:
+ * unix/tclUnixTime.c:
+ * unix/tclXtTest.c:
2010-02-24 Donal K. Fellows <dkf@users.sf.net>
diff --git a/unix/installManPage b/unix/installManPage
index 6bdccf0..4d615bf 100755
--- a/unix/installManPage
+++ b/unix/installManPage
@@ -59,9 +59,7 @@ test -z "$SymOrLoc" && SymOrLoc="$Dir/"
# backticks which doesn't pass backslashes literally.
#
Names=`sed -n '
-# Look for a line, that starts with .SH NAME
-# optionally allow NAME to be surrounded
-# by quotes.
+# Look for a line that starts with .SH NAME
/^\.SH NAME/{
# Read next line
n
@@ -71,6 +69,9 @@ Names=`sed -n '
s/\\\ //g
# Delete from \- to the end of line
s/ \\\-.*//
+# Convert all non-space non-alphanum sequences
+# to single underscores.
+ s/[^ A-Za-z0-9][^ A-Za-z0-9]*/_/g
# print the result and exit
p;q
}' $ManPage`