Expanded tabs

This commit is contained in:
Michael Kerrisk 2009-02-20 20:27:25 +13:00
parent 09d7e7ebe1
commit f2f7397a26
1 changed files with 39 additions and 39 deletions

78
Changes
View File

@ -55,47 +55,47 @@ Global changes
Various pages Various pages
Kir Kolyshkin Kir Kolyshkin
Trivial punctuation fixes in SEE ALSO Trivial punctuation fixes in SEE ALSO
In SEE ALSO, when a few man pages are referenced, those In SEE ALSO, when a few man pages are referenced, those
are divided by commas. Every reference is on a separate are divided by commas. Every reference is on a separate
line, and all lines but the last one should end with line, and all lines but the last one should end with
comma. I spotted one place where there is no comma in comma. I spotted one place where there is no comma in
between references, and mocked up an awk script to find between references, and mocked up an awk script to find
similar places: similar places:
for f in man*/*; do for f in man*/*; do
awk ' awk '
/^.SH ["]SEE ALSO["]/ { /^.SH ["]SEE ALSO["]/ {
sa=1; print "== " FILENAME " =="; print; next sa=1; print "== " FILENAME " =="; print; next
} }
/^\.(PP|SH)/ { /^\.(PP|SH)/ {
sa=0; no=0; next sa=0; no=0; next
} }
/^\.BR/ { /^\.BR/ {
if (sa==1) { if (sa==1) {
print; print;
if (no == 1) if (no == 1)
print "Missing comma in " FILENAME " +" FNR-1; no=0 print "Missing comma in " FILENAME " +" FNR-1; no=0
} }
} }
/^\.BR .*)$/ { /^\.BR .*)$/ {
if (sa==1) if (sa==1)
no=1; no=1;
next next
} }
/\.\\"/ {next} /\.\\"/ {next}
/.*/ { /.*/ {
if (sa==1) { if (sa==1) {
print; next print; next
} }
} }
' $f; ' $f;
done | fgrep 'Missing comma' done | fgrep 'Missing comma'
This patch fixes all the places found by the above script. This patch fixes all the places found by the above script.
Also, there is an extra dot at the end of uri.7 "SEE ALSO" Also, there is an extra dot at the end of uri.7 "SEE ALSO"
section. Removed as per man-pages(7) recommendation. section. Removed as per man-pages(7) recommendation.
Changes to individual pages Changes to individual pages
@ -116,11 +116,11 @@ splice.2
Target file cannot be opened in append (O_APPEND) mode Target file cannot be opened in append (O_APPEND) mode
In kernels prior to v2.6.27 splice() to a file in In kernels prior to v2.6.27 splice() to a file in
append mode is broken, and since that version it is append mode is broken, and since that version it is
disallowed. It is possible this behaviour may change disallowed. It is possible this behaviour may change
in the future; see the kernel commit message in the future; see the kernel commit message
(efc968d450e013049a662d22727cf132618dcb2f) for more (efc968d450e013049a662d22727cf132618dcb2f) for more
information. information.
syscalls.2 syscalls.2
Michael Kerrisk Michael Kerrisk