]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-php-requires
- one more fix
[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 for i in `echo $@`; do
8         i=`echo $i | grep "\.php"`
9         if [ -n "$i" ]; then
10                 j=`cat $i |grep -i ^require_once|egrep -v "^ \*"|sed -e "s/['|\"]//" |cut -f 2 -d " "|sed -e "s/\//_/g"|cut -f 1 -d "."`
11                 if [ -n "$j" ]; then
12                         for p in $j; do
13                                 echo "pear($p)"
14                         done
15                         j=""
16                 fi
17         fi
18 done
19
This page took 0.067861 seconds and 4 git commands to generate.