blob: 542465aea714d368755fc0fbc3b089cf9164b712 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# $FreeBSD$
#
# MAINTAINER: x11@FreeBSD.org
actions: [dirrmtry]
post-install: <<EOD
fc-cache -s %D/%@ 2>/dev/null || true
mkfontscale %D/%@ 2>/dev/null || true
mkfontdir %D/%@ 2>/dev/null || true
EOD
post-deinstall: <<EOD
fc-cache -s %D/%@ 2>/dev/null || true
mkfontscale %D/%@ 2>/dev/null || true
if [ -e %D/%@/fonts.scale -a "`stat -f '%%z' %D/%@/fonts.scale 2>/dev/null`" = '2' ]; then
rm %D/%@/fonts.scale
fi
mkfontdir %D/%@ 2>/dev/null || true
if [ -e %D/%@/fonts.dir -a "`stat -f '%%z' %D/%@/fonts.dir 2>/dev/null`" = '2' ]; then
rm %D/%@/fonts.dir
fi
EOD
|