Ensure man1 POD files start with openssl-
authorRich Salz <rsalz@akamai.com>
Tue, 24 Sep 2019 15:32:01 +0000 (11:32 -0400)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 26 Sep 2019 06:10:47 +0000 (08:10 +0200)
Commit b6b66573 (PR #9679) renamed most POD files. This change causes
find-doc-nits to flag misnamed files.
Also fix the two misnamed files that it found.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10000)

doc/man1/openssl-fipsinstall.pod [moved from doc/man1/fipsinstall.pod with 100% similarity]
doc/man1/openssl-provider.pod [moved from doc/man1/provider.pod with 100% similarity]
util/find-doc-nits

index 03b88ea767e133f0322095461538b2cfaa33efe3..11dcfcbac3ef5cacf908dff8e4d8c621a4f8b694 100755 (executable)
@@ -667,6 +667,14 @@ if ( $opt_n ) {
             check($_);
         }
     }
+
+    # If not given args, check that all man1 commands are named properly.
+    if ( scalar @ARGV == 0 ) {
+        foreach (glob('doc/man1/*.pod')) {
+            next if /CA.pl/ || /openssl.pod/;
+            err("$_ doesn't start with openssl-") unless /openssl-/;
+        }
+    }
 }
 
 if ( $opt_u || $opt_v) {