s3-loadparm: Fix resume command typo for "printing = vlp".
[Samba.git] / docs-xml / scripts / find_missing_manpages.pl
blobaa5751b44a260a0952d0f1b642d16372d4ff175e
1 #!/usr/bin/perl
3 $invar = 0;
4 $topdir = (shift @ARGV) or $topdir = ".";
5 $makefile = "$topdir/source/Makefile.in";
6 $mandir = "$topdir/docs-xml/manpages-3";
7 $progs = "";
9 chdir($topdir);
11 if(! -e "$makefile") {
12 print "$makefile does not exist!\n";
13 print "Wrong directory?\n";
14 exit(1);
17 if(! -d "$mandir") {
18 print "$mandir does not exist!\n";
19 exit(1);
22 open(IN, "$makefile");
23 while(<IN>) {
24 if($invar && /^([ \t]*)(.*?)([\\])$/) {
25 $progs.=" " . $2;
26 if($4) { $invar = 1; } else { $invar = 0; }
27 } elsif(/^([^ ]*)_PROGS([0-9]*) = (.*?)([\\])$/) {
28 $progs.=" " . $3;
29 if($4) { $invar = 1; }
30 } else { $invar = 0; }
33 foreach(split(/bin\//, $progs)) {
34 next if($_ eq " ");
35 s/\@EXEEXT\@//g;
36 s/\@EXTRA_BIN_PROGS\@//g;
37 s/ //g;
40 $f = $_;
42 $found = 0;
45 for($i = 0; $i < 9; $i++) {
46 if(-e "$mandir/$f.$i.xml") { $found = 1; }
49 if(!$found) {
50 print "'$f' does not have a manpage\n";