]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-php-provides
- I thought that that won't be changed...
[packages/rpm.git] / rpm-php-provides
1 #!/bin/sh
2 #####################################################################
3 #                                                                   #
4 # Check system dependences between php-pear modules                 #
5 #                                                                   #
6 # Pawe³ Go³aszewski <blues@ds.pg.gda.pl>                            #
7 # ------------------------------------------------------------------#
8 # TODO:                                                             #
9 #####################################################################
10
11 if [ $# -lt 1 ]; then
12         echo "You have to specify input file"
13         exit 1
14 fi
15
16 filelist=`echo $@`
17 for i in $filelist; do
18         i=`echo $i | grep "\.php$"`
19         if [ -n "$i" ]; then
20                 j=`cat $i | egrep  -i "^Class" | cut -f 2 -d " " |  sed "s/{/ /" | tr -d "\r"`
21                 if [ -n "$j" ]; then
22                         for p in $j; do
23                                 echo "pear($p)"
24                         done
25                         j=""
26                 fi
27         fi
28 done
This page took 0.03417 seconds and 4 git commands to generate.