]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-php-requires
- reverted last changes - other packages were broken
[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
ce0971dd 10 j=`cat $i | grep -i ^require_once | egrep -v "^ \*" | sed -e "s/['|\"]//" | sed -e "s/(/ /" | cut -f 2 -d " " | sed -e "s/\//_/g" | cut -f 1 -d "."`
981bfefd
PG
11 if [ -n "$j" ]; then
12 for p in $j; do
b605bd60 13 echo "pear($p)"
981bfefd
PG
14 done
15 j=""
16 fi
290cc4ca 17 fi
290cc4ca
PG
18done
19
This page took 0.460162 seconds and 4 git commands to generate.