Add -f flag to force scanning of font directories

Differential Revision:	https://reviews.freebsd.org/D2245
This commit is contained in:
Mark Felder 2015-04-06 20:22:58 +00:00
parent 008fde5bf0
commit 68cb8aace6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383480

View File

@ -8,7 +8,7 @@ post-install: <<EOD
/*) fontsdir="%@" ;;
*) fontsdir="%D/%@" ;;
esac
fc-cache -s ${fontsdir} 2>/dev/null || true
fc-cache -fs ${fontsdir} 2>/dev/null || true
mkfontscale ${fontsdir} 2>/dev/null || true
mkfontdir ${fontsdir} 2>/dev/null || true
EOD
@ -17,7 +17,7 @@ post-deinstall: <<EOD
/*) fontsdir="%@" ;;
*) fontsdir="%D/%@" ;;
esac
fc-cache -s ${fontsdir} 2>/dev/null || true
fc-cache -fs ${fontsdir} 2>/dev/null || true
mkfontscale ${fontsdir} 2>/dev/null || true
if [ -e ${fontsdir}/fonts.scale -a "`stat -f '%%z' ${fontsdir}/fonts.scale 2>/dev/null`" = '2' ]; then
rm ${fontsdir}/fonts.scale