X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=rpm-php-provides;h=a094cba8805a5a7b0ccafc482f7d14c63f2110e2;hp=2750cbd6065b6842c1fc8c0dad5b8affb963ce6a;hb=ec7b8d8fb16f5789772693ff807e0a93a5c653e4;hpb=ff0f018969319ea8e9a4fe9bc2778379e19b3585 diff --git a/rpm-php-provides b/rpm-php-provides index 2750cbd..a094cba 100644 --- a/rpm-php-provides +++ b/rpm-php-provides @@ -9,12 +9,11 @@ # TODO: # ##################################################################### -die "You have to specify input files" if (@ARGV < 1); - $pear = "/usr/share/pear"; -while (@ARGV > 0) { - $f = shift; +foreach (@ARGV ? @ARGV : <>) { + chomp; + $f = $_; next unless ($f =~ /$pear.*\.php$/); $f =~ s/.*$pear\///; print "pear($f)\n";