… | |
… | |
426 | my ($dirs, $nondirs) = @_; |
426 | my ($dirs, $nondirs) = @_; |
427 | |
427 | |
428 | find_files "$path/$_" |
428 | find_files "$path/$_" |
429 | for grep $_ !~ /^(?:CVS|dev)$/, @$dirs; |
429 | for grep $_ !~ /^(?:CVS|dev)$/, @$dirs; |
430 | |
430 | |
|
|
431 | my $dir = $path; |
|
|
432 | substr $dir, 0, 1 + length $PATH, ""; |
|
|
433 | |
431 | for my $file (@$nondirs) { |
434 | for my $file (@$nondirs) { |
|
|
435 | if ($file =~ /\.(ogg|jpg|res)$/ || $dir =~ /^res(?:\/|$)/) { |
|
|
436 | push @res, [$path, $file]; |
432 | if ($file =~ /\.png$/) { |
437 | } elsif ($file =~ /\.png$/) { |
433 | push @png, ["$path/$file", 0]; |
438 | push @png, ["$path/$file", 0]; |
434 | } elsif ($file =~ /\.trs$/) { |
439 | } elsif ($file =~ /\.trs$/) { |
435 | push @trs, [$path, $file]; |
440 | push @trs, [$path, $file]; |
436 | } elsif ($file =~ /\.arc$/) { |
441 | } elsif ($file =~ /\.arc$/) { |
437 | push @arc, [$path, $file]; |
442 | push @arc, [$path, $file]; |
438 | } elsif ($file =~ /\.(ogg|jpg|res)$/) { |
|
|
439 | push @res, [$path, $file]; |
|
|
440 | } else { |
443 | } else { |
441 | warn "ignoring $path/$file\n" if $VERBOSE >= 3; |
444 | warn "ignoring $path/$file\n" if $VERBOSE >= 3; |
442 | } |
445 | } |
443 | } |
446 | } |
444 | }; |
447 | }; |