4 $topdir = (shift @ARGV) or $topdir = ".";
5 $makefile = "$topdir/source/Makefile.in";
6 $mandir = "$topdir/docs-xml/manpages-3";
11 if(! -e
"$makefile") {
12 print "$makefile does not exist!\n";
13 print "Wrong directory?\n";
18 print "$mandir does not exist!\n";
22 open(IN
, "$makefile");
24 if($invar && /^([ \t]*)(.*?)([\\])$/) {
26 if($4) { $invar = 1; } else { $invar = 0; }
27 } elsif(/^([^ ]*)_PROGS([0-9]*) = (.*?)([\\])$/) {
29 if($4) { $invar = 1; }
30 } else { $invar = 0; }
33 foreach(split(/bin\//, $progs)) {
36 s/\@EXTRA_BIN_PROGS\@//g;
45 for($i = 0; $i < 9; $i++) {
46 if(-e
"$mandir/$f.$i.xml") { $found = 1; }
50 print "'$f' does not have a manpage\n";