]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-php-provides
- adapterized, partial files update
[packages/rpm.git] / rpm-php-provides
index 2750cbd6065b6842c1fc8c0dad5b8affb963ce6a..a094cba8805a5a7b0ccafc482f7d14c63f2110e2 100644 (file)
@@ -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";
This page took 0.031304 seconds and 4 git commands to generate.