summaryrefslogtreecommitdiffstats
path: root/japanese/kanji18/files/DEINSTALL.tmpl
blob: dac57525eaef7ed021327d8f61f967a17d1e4429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ "x$2" = "xPOST-DEINSTALL" ]; then
	cd ${PKG_PREFIX}/%%FONTSDIR%%; %%LOCALBASE%%/bin/mkfontdir
	%%LOCALBASE%%/bin/xset fp rehash ||
	(
	 echo "**********************************************************"
	 echo "You should restart X server or do 'xset fp rehash' command"
	 echo "to enable this update."
	 echo "**********************************************************"
	)
	if [ "`wc -c ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir | awk '{print $1}'`" = 2 ]; then 
		rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir
	fi
fi
OpenPOWER on IntegriCloud