diff options
author | rmax <rmax@noemail.net> | 2004-11-18 17:21:11 (GMT) |
---|---|---|
committer | rmax <rmax@noemail.net> | 2004-11-18 17:21:11 (GMT) |
commit | 998fe924a9dc7c575a2ffb275ff80612c04cfeb4 (patch) | |
tree | 8a54276983e9bea8a97b27ed4581477431e3a3df | |
parent | 46430d592edc6a92a46ced9255ede4793c2ef18d (diff) | |
download | tcl-998fe924a9dc7c575a2ffb275ff80612c04cfeb4.zip tcl-998fe924a9dc7c575a2ffb275ff80612c04cfeb4.tar.gz tcl-998fe924a9dc7c575a2ffb275ff80612c04cfeb4.tar.bz2 |
Some versions of sed appear to need semicolons in front of comments.
FossilOrigin-Name: 8203541530562b4c239f50f76ec6f75b4d41d2b8
-rwxr-xr-x | unix/installManPage | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/installManPage b/unix/installManPage index 16cf005..8045423 100755 --- a/unix/installManPage +++ b/unix/installManPage @@ -23,12 +23,12 @@ test -z "$S" && S="$DIR/" # Backslashes are trippled in the sed script, because it is in backticks # which don't pass backslashes literally. NAMES=`sed -n ' - /^\\.SH NAME/{ # Look for a line, that starts with .SH NAME - s/^.*$// # Delete the content of this line from the buffer - n # Read next line - s/,\|\\\ //g # Remove all commas - s/ \\\-.*// # Delete from \- to the end of line - p # print the result + /^\\.SH NAME/{ ;# Look for a line, that starts with .SH NAME + s/^.*$// ;# Delete the content of this line from the buffer + n ;# Read next line + s/,\|\\\ //g ;# Remove all commas + s/ \\\-.*// ;# Delete from \- to the end of line + p ;# print the result q }' $MANPAGE` |