Backed out code Dieter put in that tried to restrict the view to only

directories in the current module.  I think it was buggy, and it is
not behavior I particularly want anyway.
This commit is contained in:
terry%mozilla.org 1999-07-26 23:46:04 +00:00
Родитель e20a4ce802
Коммит d315e9330d
1 изменённых файлов: 1 добавлений и 19 удалений

Просмотреть файл

@ -130,29 +130,11 @@ Branch:
@dirs = ();
sub clean_dirpath {
my ($dirpath) = @_;
$dirpath =~ s!^/+!!;
$dirpath =~ s!/+!/!g;
return $dirpath;
}
DIR:
while( <*> ){
if( -d $_ ){
LEGALDIR:
for my $testdir (sort( grep(!/\*$/, @::LegalDirs) ) ) {
my $trial = clean_dirpath("$other_dir/$_");
my $trial2 = clean_dirpath("$dir/$_");
if (($other_dir_used && $trial =~ m!^$testdir(/|$)!) ||
(!$other_dir_used && $trial2 =~ m!^$testdir(/|$)!)) {
push @dirs, $_;
next DIR;
}
}
push @dirs, $_;
}
}