blob: 11178bf3777d0515c32e85d900401202d9c25daf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
if [ $# -lt 1 ]; then
echo "You have to specify input file"
exit 1
fi
filelist=`echo $@`
for i in $filelist; do
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
for p in $j; do
echo "pear($p)"
done
j=""
fi
fi
done
|