]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-php-requires
- find requires for php pear
[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
7filelist=`echo $@`
8for 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=""
14done
15
This page took 0.026907 seconds and 4 git commands to generate.