1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/x11-fonts/intlfonts/files/DEINSTALL.tmpl
2000-08-25 05:28:35 +00:00

19 lines
943 B
Bash

#!/bin/sh
if [ "x$2" = "xPOST-DEINSTALL" ]; then
cd ${PKG_PREFIX}/%%FONTSDIR%%; ${PKG_PREFIX}/bin/mkfontdir
cd ${PKG_PREFIX}/%%T1_FONTSDIR%%; %%LOCALBASE%%/bin/type1inst -nogs -nolog -quiet
${PKG_PREFIX}/bin/xset fp rehash ||
(
echo "**********************************************************"
echo "You should restart X server or do 'xset fp rehash' command"
echo "to enable this update."
echo "**********************************************************"
)
[ `wc -c ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir
[ `wc -c ${PKG_PREFIX}/%%T1_FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%T1_FONTSDIR%%/fonts.dir
[ `wc -c ${PKG_PREFIX}/%%T1_FONTSDIR%%/fonts.scale | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%T1_FONTSDIR%%/fonts.scale
# Remove a backup file made by type1inst
rm -f ${PKG_PREFIX}/%%T1_FONTSDIR%%/fonts.scale.bak
fi