updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / intlfonts / intlfonts.install
blobcb80bca5dd2985a0fca515388db13a5a8c204152
1 # arg 1:  the new package version
2 post_install() {
3   echo -n "creating fonts.dir... "
4   mkfontscale /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1
5   mkfontdir /usr/share/emacs/fonts/bdf /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1 2> /dev/null
6   echo "done."
7   echo -n "updating font cache... "
8   /usr/bin/fc-cache /usr/share/emacs/fonts
9   echo "done."
10   echo "Fonts installed to /usr/share/emacs/fonts."
11   echo "You may want to edit font paths in /etc/X11/xorg.conf and /etc/fonts/local.conf."
14 # arg 1:  the new package version
15 # arg 2:  the old package version
16 post_upgrade() {
17   post_install $1
20 # arg 1:  the old package version
21 post_remove() {
22   echo -ne "\nupdating font cache... "
23   mkfontscale /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1
24   mkfontdir /usr/share/emacs/fonts /usr/share/emacs/fonts/bdf /usr/share/emacs/fonts/TrueType /usr/share/emacs/fonts/Type1
25   /usr/bin/fc-cache /usr/share/emacs/fonts
26   echo "done."
27   echo "You may want to delete /usr/share/emacs/fonts and edit font paths in /etc/X11/xorg.conf and /etc/fonts/local.conf."
30 op=$1
31 shift
32 $op $*