diff options
author | rmax <rmax@noemail.net> | 2004-11-19 09:37:18 (GMT) |
---|---|---|
committer | rmax <rmax@noemail.net> | 2004-11-19 09:37:18 (GMT) |
commit | e902b658bbcafc316b21fd8f1b831dab0a9ed6b4 (patch) | |
tree | 48460b3b2ded75a00b3faa7eec81b818e3187b61 /unix/installManPage | |
parent | 646221add384414abd5f7135ece1f65afa2b3ec4 (diff) | |
download | tcl-e902b658bbcafc316b21fd8f1b831dab0a9ed6b4.zip tcl-e902b658bbcafc316b21fd8f1b831dab0a9ed6b4.tar.gz tcl-e902b658bbcafc316b21fd8f1b831dab0a9ed6b4.tar.bz2 |
Classic sed doesn't support | in REs.core-8-4-8
FossilOrigin-Name: 9902ad74227b63e1b25baadde0997d3b1d46996d
Diffstat (limited to 'unix/installManPage')
-rwxr-xr-x | unix/installManPage | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/installManPage b/unix/installManPage index 4157d26..93fd925 100755 --- a/unix/installManPage +++ b/unix/installManPage @@ -25,10 +25,12 @@ test -z "$S" && S="$DIR/" # /^\\.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/,//g ;# Remove all commas ... +# s/\\\ //g ;# .. and backslash-escaped spaces. # s/ \\\-.*// ;# Delete from \- to the end of line # p ;# print the result # q ;# exit +# } # # Backslashes are trippled in the sed script, because it is in # backticks which don't pass backslashes literally. @@ -39,7 +41,8 @@ NAMES=`sed -n ' /^\\.SH NAME/{ s/^.*$// n - s/,\|\\\ //g + s/,//g + s/\\\ //g s/ \\\-.*// p q |