diff options
Diffstat (limited to 'Keywords/fcfontsdir.yaml')
-rw-r--r-- | Keywords/fcfontsdir.yaml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Keywords/fcfontsdir.yaml b/Keywords/fcfontsdir.yaml new file mode 100644 index 000000000000..fdb00a8bf5f4 --- /dev/null +++ b/Keywords/fcfontsdir.yaml @@ -0,0 +1,19 @@ +# $FreeBSD$ +# +# MAINTAINER: x11@FreeBSD.org + +actions: [dirrmtry] +post-install: | + fc-cache -s %D/%@ 2>/dev/null || true + mkfontscale %D/%@ 2>/dev/null || true + mkfontdir %D/%@ 2>/dev/null || true +post-deinstall: | + 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 |