1 --- rpm-4.0/scripts/perl.req Wed Jul 5 14:26:37 2000
2 +++ rpm-4.0.new/scripts/perl.req Wed Nov 15 21:31:03 2000
17 + if ($file =~ /\.(so|ph|h|html|pod|gz|bz2|png|gif|jpg|xpm|a|patch|o|mo)$/) {
20 + # .al, .pl, .pm and .plx (perl-Font-TTF contains *.plx files)
21 + } elsif ($file =~ /\.p[lm]x?$/ || $file =~ /\.al$/) {
23 + #print STDERR "$file PERL by ext\n";
24 + } elsif ($fl =~ m|bin/perl| or $fl =~ m|env\s+perl| or $fl =~ m|exec\s+perl|) {
26 + #print STDERR "$file PERL by perl\n";
27 + } elsif ($fl =~ m|bin/sh|) {
29 + if (/eval/ && /perl/) {
33 + $nw++ if (/^\s*BEGIN/);
34 + $nw++ if (/^\s*sub\s+/);
35 + $nw++ if (/^\s*package\s+/);
36 + $nw++ if (/^\s*use\s+strict\s+;/);
37 + $nw++ if (/^\s*use\s+vars\s*qw/);
44 + $is_perl = 1 if ($nw > 1); # propably perl file
47 + # print STDERR "NOPERL $file\n";
50 + #print STDERR "PERL $file\n" if ($is_perl);
59 open(FILE, "<$file")||
60 die("$0: Could not open file: '$file' : $!\n");
62 + return if (!is_perlfile($file, \*FILE));
67 # if the module name starts in a dot it is not a module name.
69 ($module =~ m/^\./) && next;
71 + # name starts in a non alphanumeric character it is not a module
73 + ($module =~ m/^\W/) && next;
75 # if the module ends with .pm strip it to leave only basename.