summaryrefslogtreecommitdiff
path: root/scripts/find-requires.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/find-requires.php')
-rwxr-xr-xscripts/find-requires.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/find-requires.php b/scripts/find-requires.php
index 203aefbc8..4c064fcff 100755
--- a/scripts/find-requires.php
+++ b/scripts/find-requires.php
@@ -18,7 +18,7 @@ for files in `echo $@`; do
files=`echo $files | grep "\.php$"`
if [ -n "$files" ]; then
# Requires trough new call:
- j=`cat $files | grep -i new | egrep "(=|return)" | egrep -v "^[[:space:]*]*(\/\/|#|\*|/\*)" | tr -d "\r" | egrep "[;|(|)|{|}|,][[:space:]*]*$" | awk -F "new " '{ print $2 }' | sed "s/[(|;|.]/ /g" | cut -f 1 -d " " | sed "s/^$.*//"`
+ j=`cat $files | grep -i new | grep -E "(=|return)" | grep -E -v "^[[:space:]*]*(\/\/|#|\*|/\*)" | tr -d "\r" | grep -E "[;|(|)|{|}|,][[:space:]*]*$" | awk -F "new " '{ print $2 }' | sed "s/[(|;|.]/ /g" | cut -f 1 -d " " | sed "s/^$.*//"`
if [ -n "$j" ]; then
for feature in $j; do
echo "pear($feature)"
@@ -26,7 +26,7 @@ for files in `echo $@`; do
j=""
fi
# requires trough class extension
- k=`cat $files | egrep -i "(^Class.*extends)" | awk -F " extends " '{ print $2 }' | sed "s/{.*/ /" | cut -f 1 -d " " | tr -d "\r"`
+ k=`cat $files | grep -E -i "(^Class.*extends)" | awk -F " extends " '{ print $2 }' | sed "s/{.*/ /" | cut -f 1 -d " " | tr -d "\r"`
if [ -n "$k" ]; then
for feature in $k; do
echo "pear($feature)"
@@ -34,7 +34,7 @@ for files in `echo $@`; do
k=""
fi
# requires trough class:: call
- l=`cat $files | grep "::" | egrep -v "^[[:space:]*]*(\/\/|#|\*|/\*)" | sed "s/[(|'|!|\"|&|@|;]/ /g" | awk -F "::" '{ print $1 }' | sed "s/.*\ \([:alphanum:]*\)/\1/" | sed "s/^$.*//" | sed "s/[.]//g" | tr -d "\r"`
+ l=`cat $files | grep "::" | grep -E -v "^[[:space:]*]*(\/\/|#|\*|/\*)" | sed "s/[(|'|!|\"|&|@|;]/ /g" | awk -F "::" '{ print $1 }' | sed "s/.*\ \([:alphanum:]*\)/\1/" | sed "s/^$.*//" | sed "s/[.]//g" | tr -d "\r"`
if [ -n "$l" ]; then
for feature in $l; do
echo "pear($feature)"