mirror of https://github.com/mkerrisk/man-pages
man_show_fixme.sh: Fix misquoted double quotes in regexps
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b7a12afe3f
commit
d8f63a9860
|
@ -5,13 +5,13 @@
|
||||||
#
|
#
|
||||||
for f in $*; do
|
for f in $*; do
|
||||||
cat $f | awk '
|
cat $f | awk '
|
||||||
/^\.\\\" *FIXME/ {
|
/^\.\\" *FIXME/ {
|
||||||
if ($0 ~ /.*FIXME *\..*/) {
|
if ($0 ~ /.*FIXME *\..*/) {
|
||||||
# FIXMES of the form "FIXME ." are "private" and
|
# FIXMES of the form "FIXME ." are "private" and
|
||||||
# ignored by this script
|
# ignored by this script
|
||||||
} else {
|
} else {
|
||||||
sub("FIXME[: ]*", "")
|
sub("FIXME[: ]*", "")
|
||||||
if ($0 ~ /^\.\\\"[ ]*$/) {
|
if ($0 ~ /^\.\\"[ ]*$/) {
|
||||||
|
|
||||||
# If the FIXME line contains no additional text after
|
# If the FIXME line contains no additional text after
|
||||||
# "FIXME", then discard the blank line
|
# "FIXME", then discard the blank line
|
||||||
|
@ -31,7 +31,7 @@ for f in $*; do
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$0 !~ /^\.\\\"/ && fixme == 1 {
|
$0 !~ /^\.\\"/ && fixme == 1 {
|
||||||
fixme = 0
|
fixme = 0
|
||||||
print "T}"
|
print "T}"
|
||||||
print ".TE"
|
print ".TE"
|
||||||
|
|
Loading…
Reference in New Issue