aboutsummaryrefslogtreecommitdiffstats
path: root/find-provides.in
blob: 598e0994cc4c5f81a2ce1547c0ca7c106a12d8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# This script reads filenames from STDIN and outputs any relevant provides
# information that needs to be included in the package.

filelist=`sed "s/['\"]/\\\&/g"`

# fix parsing output of objdump when localized (mga#7883):
export LC_ALL=C


[ -x /usr/lib/rpm/rpmdeps -a -n "$filelist" ] &&
	    echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/rpmdeps --provides


exit 0