]>
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 | |
fa8727f7 PG |
9 | i=`echo $i | grep "\.php"` |
10 | if [ -n "$i" ]; then | |
11 | j=`cat $i |egrep -i "^Class" |cut -f 2 -d " "` | |
12 | if [ -n "$j" ]; then | |
13 | for p in $j; do | |
14 | echo "Provides: pear($p)" | |
15 | done | |
16 | j="" | |
17 | fi | |
c49c7906 | 18 | fi |
c49c7906 | 19 | done |