projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to improve the PC11->PC61 autoupgrade system
[spider.git]
/
cmd
/
show
/
files.pl
diff --git
a/cmd/show/files.pl
b/cmd/show/files.pl
index 68526a49c029648050fac32c78f17ccb28ab8c2a..2463fe96b1dbbe2e66b1836c7ea3b91ae827b715 100644
(file)
--- a/
cmd/show/files.pl
+++ b/
cmd/show/files.pl
@@
-5,7
+5,7
@@
#
# Copyright (c) 1999 Dirk Koopman G1TLH
#
#
# Copyright (c) 1999 Dirk Koopman G1TLH
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
@@
-15,6
+15,7
@@
my @out;
my @file;
my @d;
my @slot;
my @file;
my @d;
my @slot;
+my $patt = '^.*$';
if (@f) {
my $fn = lc $f[0];
if (@f) {
my $fn = lc $f[0];
@@
-22,6
+23,8
@@
if (@f) {
$fn =~ s/\.//og;
$fn =~ s/^\///og;
$root = "$root/$fn";
$fn =~ s/\.//og;
$fn =~ s/^\///og;
$root = "$root/$fn";
+
+ $patt = shellregex(lc $f[1]) if defined $f[1];
}
opendir(DIR, $root) or return (1, $self->msg('e3', 'show/files', $f[0]));
}
opendir(DIR, $root) or return (1, $self->msg('e3', 'show/files', $f[0]));
@@
-31,6
+34,7
@@
closedir(DIR);
my $flag = 0;
for (@file) {
next if /^\./;
my $flag = 0;
for (@file) {
next if /^\./;
+ next unless m{$patt};
my $fn = "$root/$_";
my $size;
my $fn = "$root/$_";
my $size;