]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- seems to be finished
authorPaweł Gołaszewski <blues@pld-linux.org>
Mon, 24 Jun 2002 08:31:57 +0000 (08:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-php-requires -> 1.2

rpm-php-requires

index 3b1123cffc81659db8049fa762ada5628b0c2123..16e9dcb0e9988ad8dcf293bf6204a508328ef985 100644 (file)
@@ -4,12 +4,16 @@ if [ $# -lt 1 ]; then
        exit 1
 fi
 
-filelist=`echo $@`
-for i in $filelist; do
-       j=`cat $i |grep -i ^require_once|egrep -v "^ \*"|cut -f 2 -d "\""|sed -e "s/\//_/"|cut -f 1 -d "."`
-       if [ -n "$j" ]; then
-               echo "Requires: pear($j)"
+for i in `echo $@`; do
+       i=`echo $i | grep "\.php"`
+       if [ -n "$i" ]; then
+               j=`cat $i |grep -i ^require_once|egrep -v "^ \*"|cut -f 2 -d "\""|sed -e "s/\//_/"|cut -f 1 -d "."`
+               if [ -n "$j" ]; then
+                       for p in $j; do
+                               echo "Requires: pear($p)"
+                       done
+                       j=""
+               fi
        fi
-       j=""
 done
 
This page took 0.04689 seconds and 4 git commands to generate.