Ensure man1 POD files start with openssl-
[openssl.git] / 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) {