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