4 for f in `find | grep '\.ph[ph]$'`; do
5 echo "-- file: $f ---------------------------------------"
8 for l in `egrep '^ *class |^} // end class|^ *function +' $f`; do
9 if [ $st = "out" ]; then
10 echo "$l" | grep -q '^ *class \+'
13 class="`echo "$l" | sed 's/^ *class \+//g; s/ *{ *//g'`"
16 elif [ $st = "in" ]; then
17 echo "$l" | grep -q '^} // end class'
24 fun="`echo "$l" | sed 's/ *function *//g'`"
25 funame="`echo "$fun" | sed 's/ *(.*//g'`"
26 if [ $st = "out" ]; then
27 echo "ss $f - $fun sssssssssssssssssss"
28 elif [ $st = "in" ]; then
29 echo "xx $f - $class :: $fun xxxxxxxxxxxxxxxxxxxxxx"
30 if [ "$class" = "$funame" ]; then
32 egrep "new *$class" `find | grep '\.ph[ph]$'`
34 egrep -- "$class::$funame\(|->$funame\(" `find | grep '\.ph[ph]$'`
39 echo --------------------------------------------------------
43 #grep -r '^ *function \+'
44 #grep -r '^ *class' `find -name '*.ph*'`
45 #grep -ir '} // end class'