]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-php-requires
- find requires for php pear
[packages/rpm.git] / rpm-php-requires
1 #!/bin/sh
2 if [ $# -lt 1 ]; then
3         echo "You have to specify input file"
4         exit 1
5 fi
6
7 filelist=`echo $@`
8 for i in $filelist; do
9         j=`cat $i |grep -i ^require_once|egrep -v "^ \*"|cut -f 2 -d "\""|sed -e "s/\//_/"|cut -f 1 -d "."`
10         if [ -n "$j" ]; then
11                 echo "Requires: pear($j)"
12         fi
13         j=""
14 done
15
This page took 0.028584 seconds and 4 git commands to generate.