diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-07-24 17:10:57 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-07-24 17:10:57 +0000 |
commit | 1cee61cab57a175608fa153da8f17362ce7f8af4 (patch) | |
tree | 6d99d938e0ca10ccdec46bf68bcefc8fdf264016 /Keywords/fontsdir.ucl | |
parent | ead20185b28fda5ec096aff5a273feb959287940 (diff) |
Notes
Diffstat (limited to 'Keywords/fontsdir.ucl')
-rw-r--r-- | Keywords/fontsdir.ucl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Keywords/fontsdir.ucl b/Keywords/fontsdir.ucl new file mode 100644 index 000000000000..d4974074f448 --- /dev/null +++ b/Keywords/fontsdir.ucl @@ -0,0 +1,19 @@ +# $FreeBSD$ +# +# MAINTAINER: x11@FreeBSD.org + +actions: [dirrmtry] +post-install: <<EOD + mkfontscale %D/%@ 2>/dev/null || true + mkfontdir %D/%@ 2>/dev/null || true +EOD +post-deinstall: <<EOD + 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 |