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