summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-28 18:59:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-08-28 18:59:25 (GMT)
commite754f7aad1e363879fa76d58a12631d804a1260b (patch)
tree9c00a8f5096f9f76da112f1041f30c8ddedc8dc6 /unix
parent62c8a18cdc61772151a423b43a6252e4c89a5a43 (diff)
parentb3993adcfb19f12c2fe6accbaec020a9599a6294 (diff)
downloadtcl-e754f7aad1e363879fa76d58a12631d804a1260b.zip
tcl-e754f7aad1e363879fa76d58a12631d804a1260b.tar.gz
tcl-e754f7aad1e363879fa76d58a12631d804a1260b.tar.bz2
merge core-8-branch
Diffstat (limited to 'unix')
-rwxr-xr-xunix/installManPage43
1 files changed, 29 insertions, 14 deletions
diff --git a/unix/installManPage b/unix/installManPage
index 1f1cbde..09a31dd 100755
--- a/unix/installManPage
+++ b/unix/installManPage
@@ -60,20 +60,35 @@ test -z "$SymOrLoc" && SymOrLoc="$Dir/"
#
Names=`sed -n '
# Look for a line that starts with .SH NAME
- /^\.SH NAME/{
-# Read next line
- n
-# Remove all commas ...
- s/,//g
-# ... and backslash-escaped spaces.
- 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
+ /^\.SH NAME/,/^\./{
+
+
+ /^\./!{
+
+ # Remove all commas...
+ s/,//g
+
+ # ... and backslash-escaped spaces.
+ s/\\\ //g
+
+ /\\\-.*/{
+ # Delete from \- to the end of line
+ s/ \\\-.*//
+ h
+ s/.*/./
+ x
+ }
+
+ # Convert all non-space non-alphanum sequences
+ # to single underscores.
+ s/[^ A-Za-z0-9][^ A-Za-z0-9]*/_/g
+ p
+ g
+ /^\./{
+ q
+ }
+ }
+
}' $ManPage`
if test -z "$Names" ; then