From d89e567a3fe301513490a47645ae53715796bbf9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Sat, 29 Jun 2002 16:02:09 +0000 Subject: [PATCH] - small fix Changed files: rpm-php-provides -> 1.5 rpm-php-requires -> 1.8 --- rpm-php-provides | 2 +- rpm-php-requires | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm-php-provides b/rpm-php-provides index 481569a..11178bf 100644 --- a/rpm-php-provides +++ b/rpm-php-provides @@ -6,7 +6,7 @@ fi filelist=`echo $@` for i in $filelist; do - i=`echo $i | grep "\.php"` + i=`echo $i | grep "\.php$"` if [ -n "$i" ]; then j=`cat $i |egrep -i "^Class" |cut -f 2 -d " "| tr -d "\r"` if [ -n "$j" ]; then diff --git a/rpm-php-requires b/rpm-php-requires index a8dad65..a6b24c1 100644 --- a/rpm-php-requires +++ b/rpm-php-requires @@ -5,7 +5,7 @@ if [ $# -lt 1 ]; then fi for i in `echo $@`; do - i=`echo $i | grep "\.php"` + i=`echo $i | grep "\.php$"` if [ -n "$i" ]; then 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 "."` if [ -n "$j" ]; then -- 2.44.0