]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-find-php-requires
- workaround over static markers for the .. operator
[packages/rpm.git] / rpm-find-php-requires
CommitLineData
290cc4ca
PG
1#!/bin/sh
2ulimit -c 0
3cd `rpm --eval %{_builddir}`
4
5filelist=`sed "s/['\"]/\\\&/g"`
6if [ -f __rpm_noautoreqfiles ] ; then
7 for i in `cat __rpm_noautoreqfiles`; do
8 filelist=`echo $filelist | sed "s![[:space:]]*$i[[:space:]]*!!g"`
9 done
10fi
11
12requires="`echo $filelist | /usr/lib/rpm/find-requires`"
13requires_php="`echo $filelist | xargs /usr/lib/rpm/php.req`"
14
15if [ -f __rpm_noautoreq ] ; then
16 for i in `cat __rpm_noautoreq`; do
17 requires_php=`echo $requires_php | sed "s!\<$i[[:space:]]*!!g"`
18 done
19fi
20
21requires_php_t="$requires_php"
22if [ -f __rpm_noautoreqdep ] ; then
23 for i in `cat __rpm_noautoreqdep`; do
24 requires_php_t=`echo $requires_php_t | sed "s!\<$i[[:space:]]*!!g"`
25 done
26fi
27
290cc4ca 28echo "$requires
12dc5c92 29$requires_php"| grep -v "no package provides" | sort -u
This page took 0.030745 seconds and 4 git commands to generate.