]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- find provides for php-pear
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 23 Jun 2002 23:03:38 +0000 (23:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-php-provides -> 1.1

rpm-php-provides [new file with mode: 0644]

diff --git a/rpm-php-provides b/rpm-php-provides
new file mode 100644 (file)
index 0000000..039499e
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+if [ $# -lt 1 ]; then
+       echo "You have to specify input file"
+       exit 1
+fi
+
+filelist=`echo $@`
+for i in $filelist; do
+       j=`cat $i |egrep -i "^Class" |cut -f 2 -d " "`
+       if [ -n "$j" ]; then
+               echo "Provides: pear($j)"
+       fi
+       j=""
+done
This page took 0.046307 seconds and 4 git commands to generate.