Ignore:
Timestamp:
May 20, 2009, 6:46:53 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/docs-xml/scripts/find_missing_manpages.pl

    r203 r204  
    11#!/usr/bin/perl
    22
    3 my %doc;
    4 
    53$invar = 0;
    6 
    74$topdir = (shift @ARGV) or $topdir = ".";
    8 
     5$makefile = "$topdir/source/Makefile.in";
     6$mandir = "$topdir/docs-xml/manpages-3";
    97$progs = "";
    108
    11 open(IN, "$topdir/Makefile.in");
     9chdir($topdir);
     10
     11if(! -e "$makefile") {
     12        print "$makefile does not exist!\n";
     13        print "Wrong directory?\n";
     14        exit(1);
     15}
     16
     17if(! -d "$mandir") {
     18        print "$mandir does not exist!\n";
     19        exit(1);
     20}
     21
     22open(IN, "$makefile");
    1223while(<IN>) {
    1324        if($invar && /^([ \t]*)(.*?)([\\])$/) {
     
    2334        next if($_ eq " ");
    2435        s/\@EXEEXT\@//g;
     36        s/\@EXTRA_BIN_PROGS\@//g;
    2537        s/ //g;
    2638
    2739
    2840        $f = $_;
    29        
     41
    3042        $found = 0;
    3143
     44
    3245        for($i = 0; $i < 9; $i++) {
    33                 if(-e "manpages/$f.$i.xml") { $found = 1; }
     46                if(-e "$mandir/$f.$i.xml") { $found = 1; }
    3447        }
    3548
Note: See TracChangeset for help on using the changeset viewer.