updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ttf-bitstream-cyberbit / fonts.install
blob11c3e9dcca14165794bc7edf3dce1ca48fc3f801
1 post_install() {
2         fc-cache -f
3         mkfontscale $(find /usr/share/fonts -type d)
4         mkfontdir $(find /usr/share/fonts -type d)
7 post_upgrade() {
8         post_install "$@"
11 post_remove() {
12         post_install "$@"
13         find /usr/share/fonts -type d | while read i; do [ "$(ls "${i}")" = $'fonts.dir\nfonts.scale' ] && rm -r "${i}"; done
16 op=$1
17 shift
18 [ "$(type -t "$op")" = "function" ] && $op "$@"