Changeset 204 for branches/samba-3.2.x/docs-xml/scripts
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/docs-xml/scripts/find_missing_manpages.pl
r203 r204 1 1 #!/usr/bin/perl 2 2 3 my %doc;4 5 3 $invar = 0; 6 7 4 $topdir = (shift @ARGV) or $topdir = "."; 8 5 $makefile = "$topdir/source/Makefile.in"; 6 $mandir = "$topdir/docs-xml/manpages-3"; 9 7 $progs = ""; 10 8 11 open(IN, "$topdir/Makefile.in"); 9 chdir($topdir); 10 11 if(! -e "$makefile") { 12 print "$makefile does not exist!\n"; 13 print "Wrong directory?\n"; 14 exit(1); 15 } 16 17 if(! -d "$mandir") { 18 print "$mandir does not exist!\n"; 19 exit(1); 20 } 21 22 open(IN, "$makefile"); 12 23 while(<IN>) { 13 24 if($invar && /^([ \t]*)(.*?)([\\])$/) { … … 23 34 next if($_ eq " "); 24 35 s/\@EXEEXT\@//g; 36 s/\@EXTRA_BIN_PROGS\@//g; 25 37 s/ //g; 26 38 27 39 28 40 $f = $_; 29 41 30 42 $found = 0; 31 43 44 32 45 for($i = 0; $i < 9; $i++) { 33 if(-e " manpages/$f.$i.xml") { $found = 1; }46 if(-e "$mandir/$f.$i.xml") { $found = 1; } 34 47 } 35 48
Note:
See TracChangeset
for help on using the changeset viewer.