From 3434566a605bb11e0f5a78d6f3996ede7f728e68 Mon Sep 17 00:00:00 2001 From: dkf Date: Fri, 26 Feb 2010 10:25:35 +0000 Subject: Remap non-alphanumeric sequences in manpage filenames to single underscores. --- ChangeLog | 31 ++++++++++++++++++------------- unix/installManPage | 7 ++++--- 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 + + * unix/installManPage: Remap non-alphanumeric sequences in filenames + to single underscores (especially colons). + 2010-02-26 Pat Thoyts - * 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 - * 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 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` -- cgit v0.12