diff options
Diffstat (limited to 'ttf-vista-fonts.install')
-rw-r--r-- | ttf-vista-fonts.install | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ttf-vista-fonts.install b/ttf-vista-fonts.install new file mode 100644 index 000000000000..7d5202312c1b --- /dev/null +++ b/ttf-vista-fonts.install @@ -0,0 +1,33 @@ +post_install() { + echo -n "rebuilding font cache... " + fc-cache /usr/share/fonts/TTF + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + echo -n "rebuilding font cache... " + fc-cache /usr/share/fonts/TTF + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + echo -n "rebuilding font cache... " + fc-cache /usr/share/fonts/TTF + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +op=$1 +shift + +$op $* |