1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/docs-xml/scripts/find_missing_manpages.pl
Andrew Bartlett b93326b968 s3-build: remove EXEEXT from Makefiles
As far as I am aware, we do not actually build on any platforms that
require this.  The last Stratos VOS release on
ftp://ftp.stratus.com/vos/samba/samba.html was 3.0.5

Andrew Bartlett
2012-02-09 00:27:08 +01:00

40 lines
636 B
Perl
Executable File

#!/usr/bin/perl
my %doc;
$invar = 0;
$topdir = (shift @ARGV) or $topdir = ".";
$progs = "";
open(IN, "$topdir/Makefile.in");
while(<IN>) {
if($invar && /^([ \t]*)(.*?)([\\])$/) {
$progs.=" " . $2;
if($4) { $invar = 1; } else { $invar = 0; }
} elsif(/^([^ ]*)_PROGS([0-9]*) = (.*?)([\\])$/) {
$progs.=" " . $3;
if($4) { $invar = 1; }
} else { $invar = 0; }
}
$progs =~ s/@([^@]+)@//g;
foreach(split(/bin\//, $progs)) {
next if($_ eq " ");
s/ //g;
$f = $_;
$found = 0;
for($i = 0; $i < 9; $i++) {
if(-e "manpages-3/$f.$i.xml") { $found = 1; }
}
if(!$found) {
print "'$f' does not have a manpage\n";
}
}