mirror of
git://slackware.nl/current.git
synced 2024-12-27 09:59:16 +01:00
367b1180da
x/fontconfig-2.15.0-x86_64-2.txz: Rebuilt. Prefer Liberation for sans and serif (as usual). Thanks to Daedra. Migrate files from /etc/fonts/conf.avail to /usr/share/fontconfig/fonts.avail.
22 lines
871 B
Bash
22 lines
871 B
Bash
# Update the X font indexes:
|
|
if [ -x /usr/bin/fc-cache ]; then
|
|
/usr/bin/fc-cache -f
|
|
fi
|
|
# else we'll catch it later with setup.fontconfig :-)
|
|
|
|
# With fontconfig-2.15.0 we use the default of /usr/share/fontconfig/conf.avail
|
|
# so if we find any of "our" files in the old location, it's possible that they
|
|
# rode the old symlink there prior to this package being installed. Let's make
|
|
# sure that they get home OK.
|
|
if [ -d etc/fonts/conf.avail ]; then
|
|
grep usr/share/fontconfig/conf.avail/ var/lib/pkgtools/packages/* | cut -f 2 -d : | sort | uniq | grep -v "/$" | while read conf ; do
|
|
etcconf="etc/fonts/$(echo $conf | cut -f 4- -d /)"
|
|
if [ ! -r $conf -a -r $etcconf ]; then
|
|
mv $etcconf $conf
|
|
else
|
|
rm -f $etcconf
|
|
fi
|
|
done
|
|
fi
|
|
# If we can, get rid of this. Could be held by third-party packages though.
|
|
rmdir etc/fonts/conf.avail 2> /dev/null
|