]>
Commit | Line | Data |
---|---|---|
c49c7906 PG |
1 | #!/bin/sh |
2 | if [ $# -lt 1 ]; then | |
3 | echo "You have to specify input file" | |
4 | exit 1 | |
5 | fi | |
6 | ||
7 | filelist=`echo $@` | |
8 | for i in $filelist; do | |
d89e567a | 9 | i=`echo $i | grep "\.php$"` |
fa8727f7 | 10 | if [ -n "$i" ]; then |
4668420e | 11 | j=`cat $i |egrep -i "^Class" |cut -f 2 -d " "| tr -d "\r"` |
fa8727f7 PG |
12 | if [ -n "$j" ]; then |
13 | for p in $j; do | |
b605bd60 | 14 | echo "pear($p)" |
fa8727f7 PG |
15 | done |
16 | j="" | |
17 | fi | |
c49c7906 | 18 | fi |
c49c7906 | 19 | done |