|
Panu Matilainen |
0a87f6 |
#!/bin/bash
|
|
Panu Matilainen |
0a87f6 |
#
|
|
Panu Matilainen |
0a87f6 |
# Script to install in:
|
|
Panu Matilainen |
0a87f6 |
# /usr/lib/rpm/redhat/find-provides.d
|
|
Panu Matilainen |
0a87f6 |
#
|
|
Panu Matilainen |
0a87f6 |
# Transform font files into RPM provides
|
|
Panu Matilainen |
0a87f6 |
# Requires fontconfig >= 2.6.90
|
|
Panu Matilainen |
0a87f6 |
#
|
|
Panu Matilainen |
0a87f6 |
# Author: Behdad Esfahbod <behdad@redhat.com>
|
|
Panu Matilainen |
0a87f6 |
# Based on other provides scripts from RPM
|
|
Panu Matilainen |
0a87f6 |
#
|
|
Panu Matilainen |
0a87f6 |
|
|
Panu Matilainen |
0a87f6 |
fcquery=/usr/bin/fc-query
|
|
Panu Matilainen |
0a87f6 |
|
|
Panu Matilainen |
0a87f6 |
[ -x $fcquery ] || exit 0
|
|
Panu Matilainen |
0a87f6 |
|
|
Panu Matilainen |
0a87f6 |
# filter out anything outside main fontconfig path
|
|
Panu Matilainen |
0a87f6 |
grep /usr/share/fonts/ |
|
|
Panu Matilainen |
2a1787 |
while read fn; do
|
|
Panu Matilainen |
2a1787 |
$fcquery --format '%{=pkgkit}' "${fn}" 2> /dev/null
|
|
Panu Matilainen |
2a1787 |
done
|