2ee0066f82aeb7734f4f4c43fa1ae1ba01407983
4 my $revision = '$Revision: 1.1 $';
7 # compare two directories recursively
9 my ($rRoot,$oRoot,$rPat,$oPat,$curdir) = @_;
11 opendir(SPOOL
,"$rRoot/$curdir") || die "can't open '$rRoot/$curdir'";
12 my @entries = grep { ! /^\.{1,2}$/ } readdir SPOOL
;
18 foreach my $entry(@entries) {
19 my $fentry = $curdir ?
"$curdir/$entry" : $entry;
20 if ( -d
"$rRoot/$fentry" ) {
21 if ( -d
"$oRoot/$fentry" ) {
22 push @children,$fentry;
24 print "[d] $fentry\n";
27 $fentry =~ s/$rPat/$oPat/;
28 ( -f
"$oRoot/$fentry") or
29 print "[f] $fentry\n";
34 foreach my $child(@children) {
35 &scandir
($rRoot,$oRoot,$rPat,$oPat,$child);
42 $revision =~ s/(\$)Revision: (.*) \$$/v\2/;
44 print "[ This is checkspool.pl ($revision), a checker for Diogenes's spool ]\n\n",
46 " checkspool.pl <rcs> <spool>\n\n",
48 " rcs - the RCS root\n",
49 " spool - the spool directory\n",
66 print "\nNot in RCS (ignore templates_c) :\n";
67 &scandir
($spool,$rcs,'$',',v');
70 print "\nNot in spool :\n";
71 &scandir
($rcs,$spool,',v$','');