--- cf.schmorp.de/server/utils/cfutil.in 2007/07/19 13:46:39 1.42 +++ cf.schmorp.de/server/utils/cfutil.in 2007/07/23 23:38:18 1.43 @@ -428,15 +428,18 @@ find_files "$path/$_" for grep $_ !~ /^(?:CVS|dev)$/, @$dirs; + my $dir = $path; + substr $dir, 0, 1 + length $PATH, ""; + for my $file (@$nondirs) { - if ($file =~ /\.png$/) { + if ($file =~ /\.(ogg|jpg|res)$/ || $dir =~ /^res(?:\/|$)/) { + push @res, [$path, $file]; + } elsif ($file =~ /\.png$/) { push @png, ["$path/$file", 0]; } elsif ($file =~ /\.trs$/) { push @trs, [$path, $file]; } elsif ($file =~ /\.arc$/) { push @arc, [$path, $file]; - } elsif ($file =~ /\.(ogg|jpg|res)$/) { - push @res, [$path, $file]; } else { warn "ignoring $path/$file\n" if $VERBOSE >= 3; }