triggers/x11-fonts: also run fc-cache on specified dirs.
--HG-- extra : convert_revision : 826b435f7f28f4f133a784ae0f5cb9102e8b9940
This commit is contained in:
parent
4f73d12171
commit
e9ca460086
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# This trigger rebuilds the fonts.dir and fonts.scale files
|
# 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]
|
# Arguments: $1 = action [run/targets]
|
||||||
# $2 = target [post-install/pre-remove]
|
# $2 = target [post-install/pre-remove]
|
||||||
@ -11,6 +12,7 @@ trigger="x11-fonts"
|
|||||||
|
|
||||||
mkfontdir=./usr/bin/mkfontdir
|
mkfontdir=./usr/bin/mkfontdir
|
||||||
mkfontscale=./usr/bin/mkfontscale
|
mkfontscale=./usr/bin/mkfontscale
|
||||||
|
fccache=./usr/bin/fc-cache
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
targets)
|
targets)
|
||||||
@ -32,6 +34,8 @@ run)
|
|||||||
${mkfontdir} .${dir} || exit $?
|
${mkfontdir} .${dir} || exit $?
|
||||||
echo "Building ${dir}/fonts.scale..."
|
echo "Building ${dir}/fonts.scale..."
|
||||||
${mkfontscale} .${dir} || exit $?
|
${mkfontscale} .${dir} || exit $?
|
||||||
|
echo "Updating fontconfig's cache..."
|
||||||
|
${fccache} .${dir} 2>/dev/null
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
pre-remove)
|
pre-remove)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user