]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-php-provides
- fixed __spec_prep_pre (missing ___build_pre); ported macros 1.125
[packages/rpm.git] / rpm-php-provides
index 55f3fb412021fc3955b1d9ce1933ba7671bb1947..91baf9cabef1b992bd5ee1794c244c18919ff395 100644 (file)
@@ -1,4 +1,13 @@
 #!/bin/sh
+#####################################################################
+#                                                                   #
+# Check system dependences between php-pear modules                 #
+#                                                                   #
+# Pawe³ Go³aszewski <blues@ds.pg.gda.pl>                            #
+# ------------------------------------------------------------------#
+# TODO:                                                             #
+#####################################################################
+
 if [ $# -lt 1 ]; then
        echo "You have to specify input file"
        exit 1
@@ -6,9 +15,9 @@ fi
 
 filelist=`echo $@`
 for i in $filelist; do
-       i=`echo $i | grep "\.php"`
+       i=`echo $i | grep "\.php$"`
        if [ -n "$i" ]; then
-               j=`cat $i |egrep -i "^Class" |cut -f 2 -d " "`
+               j=`cat $i | egrep  -i "^Class" | cut -f 2 -d " " |  sed "s/{/ /" | tr -d "\r"`
                if [ -n "$j" ]; then
                        for p in $j; do
                                echo "pear($p)"
This page took 0.027458 seconds and 4 git commands to generate.