Avoid noise from python bytecompile on non-python pkgs (RhBug:539635)
[platform/upstream/rpm.git] / scripts / fontconfig.prov
1 #!/bin/bash
2 #
3 # Script to install in:
4 # /usr/lib/rpm/redhat/find-provides.d
5 #
6 # Transform font files into RPM provides
7 # Requires fontconfig >= 2.6.90
8 #
9 # Author: Behdad Esfahbod <behdad@redhat.com>
10 # Based on other provides scripts from RPM
11 #
12
13 fcquery=/usr/bin/fc-query
14
15 [ -x $fcquery ] || exit 0
16
17 # filter out anything outside main fontconfig path
18 grep /usr/share/fonts/ |
19 while read fn; do
20     $fcquery --format '%{=pkgkit}' "${fn}" 2> /dev/null
21 done