diff options
Diffstat (limited to 'ttf-vista-fonts.install')
-rw-r--r-- | ttf-vista-fonts.install | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/ttf-vista-fonts.install b/ttf-vista-fonts.install index 7d5202312c1b..a4f10ce1edaa 100644 --- a/ttf-vista-fonts.install +++ b/ttf-vista-fonts.install @@ -1,17 +1,21 @@ 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." + rebuild_font_cache + echo + echo + echo "######################################################################" + echo "# #" + echo "# LICENSE AGREEEMENT for ttf-vista-fonts #" + echo "# #" + echo "# In accordance to the Microsoft EULA, you are allowed to use these #" + echo "# fonts only if a licensed copy of Windows Vista(tm) or later and/or #" + echo "# Microsoft Office 2007(tm) or later is installed on this computer. #" + echo "# #" + echo "######################################################################" + echo } 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." + rebuild_font_cache } pre_remove() { @@ -20,7 +24,11 @@ pre_remove() { # arg 1: the old package version post_remove() { - echo -n "rebuilding font cache... " + rebuild_font_cache +} + +rebuild_font_cache() { + echo -n "Rebuilding font cache... " fc-cache /usr/share/fonts/TTF mkfontscale /usr/share/fonts/TTF mkfontdir /usr/share/fonts/TTF |