summaryrefslogtreecommitdiff
path: root/scripts/find-php-provides
blob: 02e0c42e749278f69170dda3ac16e06ca9f09f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
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"