]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-php-requires
- seems to be finished
[packages/rpm.git] / rpm-php-requires
CommitLineData
290cc4ca
PG
1#!/bin/sh
2if [ $# -lt 1 ]; then
3 echo "You have to specify input file"
4 exit 1
5fi
6
981bfefd
PG
7for 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 "^ \*"|cut -f 2 -d "\""|sed -e "s/\//_/"|cut -f 1 -d "."`
11 if [ -n "$j" ]; then
12 for p in $j; do
13 echo "Requires: pear($p)"
14 done
15 j=""
16 fi
290cc4ca 17 fi
290cc4ca
PG
18done
19
This page took 0.028512 seconds and 4 git commands to generate.