]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-php-requires
- removed duplicate [uk] X11 (from branch)
[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 7for i in `echo $@`; do
d89e567a 8 i=`echo $i | grep "\.php$"`
981bfefd 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.041776 seconds and 4 git commands to generate.