diff options
author | Nigel Metheringham <nigel@exim.org> | 2011-01-30 15:22:13 +0000 |
---|---|---|
committer | Nigel Metheringham <nigel@exim.org> | 2011-01-30 15:22:13 +0000 |
commit | 9429c9437bd9992903bda5b06e3422787704d608 (patch) | |
tree | 382c64a34232d0960411df3dfea0d9c61993d2c8 | |
parent | e97ad3f83fdd56c35eb3fde75d911be894c46277 (diff) | |
parent | b96e25d3685da8f4f4a8bdec99d24b8bef1154a2 (diff) | |
download | exim4-pdpreview.tar.gz |
Merge branch 'master' of git://git.exim.org/users/pdp/review into pdpreviewpdpreview
-rwxr-xr-x | doc/doc-docbook/SanityTestText | 13 | ||||
-rwxr-xr-x | doc/doc-docbook/Tidytxt | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/doc/doc-docbook/SanityTestText b/doc/doc-docbook/SanityTestText index 90b9aeb6d..25b181e3d 100755 --- a/doc/doc-docbook/SanityTestText +++ b/doc/doc-docbook/SanityTestText @@ -4,14 +4,19 @@ # This tool is only used in building spec.txt for a release, not used as # part of the normal build/install process, so only Maintainers are affected # by requirements here. -# -# This tool requires pcregrep(1). filename="$1" -pcregrep -q '[^\x{20}-\x{7E}]' "$filename" +if echo a | pcregrep -q a 2>/dev/null +then + pcregrep -q '[^\x{20}-\x{7E}]' "$filename" + grepstatus=$? +else + perl -ne 'BEGIN {$rv=1};END {exit $rv}; + if (/[^\r\n\x{20}-\x{7E}]/) { $rv = 0; last }' < "$filename" + grepstatus=$? +fi -grepstatus=$? case $grepstatus in 0) echo >&2 "$0: found non-ASCII characters in $filename" diff --git a/doc/doc-docbook/Tidytxt b/doc/doc-docbook/Tidytxt index 53ae8ccac..a628b6dcf 100755 --- a/doc/doc-docbook/Tidytxt +++ b/doc/doc-docbook/Tidytxt @@ -39,8 +39,8 @@ foreach $line (@lines) $line =~ s/\x{e2}\x{95}\x{b3}/X/g; # w3m rendering issue apparently only seen by pdp - # affects section numbers after the ToC - #$line =~ s/^(\d+(?:\.\d+)?)\x{c2}/$1./g; + # affects section numbers after the ToC, some info on spool-file -lines, etc + # always appears to be a spurious extra character, safely just dropped. $line =~ s/\x{c2}//g; if ($line =~ /^\s*$/) |