blob: a98ba7fe991ae909f8a2d9dee0e05f72e1427d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
echo -n "Updating font cache... "
mkfontscale /usr/share/fonts/wenquanyi/wqy-microhei
mkfontdir /usr/share/fonts/wenquanyi/wqy-microhei
fc-cache -f /usr/share/fonts/wenquanyi/wqy-microhei > /dev/null
echo "done."
}
post_upgrade() {
post_install $1
}
post_remove() {
rm -r /usr/share/fonts/wenquanyi/wqy-microhei
rmdir --ignore-fail-on-non-empty /usr/share/fonts/wenquanyi/
}
op=$1
shift
$op $*
|