triggers/x11-fonts: also run fc-cache on specified dirs.

--HG--
extra : convert_revision : 826b435f7f28f4f133a784ae0f5cb9102e8b9940
This commit is contained in:
Juan RP 2009-03-23 18:48:25 +01:00
parent 4f73d12171
commit e9ca460086
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
#
# This trigger rebuilds the fonts.dir and fonts.scale files
# for packages that install X11 fonts.
# for packages that install X11 fonts, and update fontconfig's
# cache for those fonts.
#
# Arguments: $1 = action [run/targets]
# $2 = target [post-install/pre-remove]
@ -11,6 +12,7 @@ trigger="x11-fonts"
mkfontdir=./usr/bin/mkfontdir
mkfontscale=./usr/bin/mkfontscale
fccache=./usr/bin/fc-cache
case "$1" in
targets)
@ -32,6 +34,8 @@ run)
${mkfontdir} .${dir} || exit $?
echo "Building ${dir}/fonts.scale..."
${mkfontscale} .${dir} || exit $?
echo "Updating fontconfig's cache..."
${fccache} .${dir} 2>/dev/null
done
;;
pre-remove)