1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

Fix fontdir handling to work properly.

Fix the name of mkfontdir and use correct paths.
This commit is contained in:
Niclas Zeising 2013-12-20 22:26:13 +00:00
parent 85a0230c9c
commit 1d45334d44
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337096

View File

@ -5,13 +5,13 @@
actions: [dirrmtry]
post-install: |
mkfontscale %D/%@ 2>/dev/null || true
mkfontsdir %D/%@ 2>/dev/null || true
mkfontdir %D/%@ 2>/dev/null || true
post-deinstall: |
mkfontscale %@ 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 %@ 2>/dev/null || true
if [ -e %D/%@/fonts.dir -a "`stat -f '%%z' %D/%@§fonts.dir 2>/dev/null`" = '2' ]; then
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