blob: 7d5202312c1b52a9aeb6367b764139da41c1f0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 $*
|