summaryrefslogtreecommitdiffstats
path: root/util/find-doc-nits
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-11-15 19:20:32 +0100
committerRichard Levitte <levitte@openssl.org>2020-11-17 23:12:02 +0100
commitbf57cab74b6d64f9d5bb3de8a6c77601ce208b74 (patch)
tree02261bf13e5655e65ed80b5220cdf2f4702f17e9 /util/find-doc-nits
parentutil/mkrc.pl: Make sure FILEVERSION and PRODUCTVERSION have four numbers (diff)
downloadopenssl-bf57cab74b6d64f9d5bb3de8a6c77601ce208b74.tar.xz
openssl-bf57cab74b6d64f9d5bb3de8a6c77601ce208b74.zip
util/find-doc-nits: check podchecker() return value
From the Pod::Checker manual: > RETURN VALUE > podchecker returns the number of POD syntax errors found or > -1 if there were no POD commands at all found in the file. Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/13416)
Diffstat (limited to 'util/find-doc-nits')
-rwxr-xr-xutil/find-doc-nits3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/find-doc-nits b/util/find-doc-nits
index a581adfa35..c311d792f2 100755
--- a/util/find-doc-nits
+++ b/util/find-doc-nits
@@ -778,7 +778,8 @@ sub check {
open my $OUT, '>', $temp
or die "Can't open $temp, $!";
- podchecker($filename, $OUT);
+ err($id, "POD errors")
+ if podchecker($filename, $OUT) != 0;
close $OUT;
open $OUT, '<', $temp
or die "Can't read $temp, $!";