diff options
author | jbj <devnull@localhost> | 2002-07-31 15:13:46 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-07-31 15:13:46 +0000 |
commit | bcacb6d74552ba608320a444974508794ac3ca4e (patch) | |
tree | 087823d79405769c23e465e1aa5795259fe53b9b /scripts/find-php-provides | |
parent | 8ab4727f8cc8806021377729383652c31808f215 (diff) | |
download | librpm-tizen-bcacb6d74552ba608320a444974508794ac3ca4e.tar.gz librpm-tizen-bcacb6d74552ba608320a444974508794ac3ca4e.tar.bz2 librpm-tizen-bcacb6d74552ba608320a444974508794ac3ca4e.zip |
Carry PLD scripts/configuration for perl/python/php in rpm sources.
CVS patchset: 5585
CVS date: 2002/07/31 15:13:46
Diffstat (limited to 'scripts/find-php-provides')
-rw-r--r-- | scripts/find-php-provides | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/find-php-provides b/scripts/find-php-provides new file mode 100644 index 000000000..369a67462 --- /dev/null +++ b/scripts/find-php-provides @@ -0,0 +1,21 @@ +#!/bin/sh +ulimit -c 0 +cd `rpm --eval %{_builddir}` + +filelist=`sed "s/['\"]/\\\&/g"` +if [ -f __rpm_noautoprovfiles ] ; then + for i in `cat __rpm_noautoprovfiles`; do + filelist=`echo $filelist | sed "s![[:space:]]*$i[[:space:]]*!!g"` + done +fi + + +echo $filelist|/usr/lib/rpm/find-provides +provides_php=`echo $filelist | xargs /usr/lib/rpm/php.prov` +if [ -f __rpm_noautoprov ] ; then + for i in `cat __rpm_noautoprov`; do + provides_php=`echo $provides_php | sed "s!\<$i[[:space:]]*!!g"` + done +fi + +echo "$provides_php" |