Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > f0f5c5109e61a56db74d82734231c4ff > scriptlet

FreeWnn-1.1.1-0.a017.10mdk.i586.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then service jserver stop > /dev/null 2>/dev/null || :; /sbin/chkconfig --del jserver; fi; 
if [ $1 = 0 ]; then
	# if FreeWnn is removed, remove its user data file too
	rm -rf /var/lib/wnn/ja_JP/dic/usr/*
fi

POSTIN

/bin/sh
if [ $1 = 1 ]; then /sbin/chkconfig --add jserver; else if [ -f /var/lock/subsys/jserver ]; then service jserver restart > /dev/null 2>/dev/null || : ; fi; fi; 
cd /usr/lib/wnn && \
{
	( 
		cd ja_JP/dic && \
		/usr/bin/Wnn4/wnntouch {pubdic,wnncons,gerodic}/*
	);
#
# (fg) 20000518 This stuff should be uncommented when Korean and Chinese
# clients use Wnn... Thanks Pablo
#
#	(
#		cd zh_CN && \
#		/usr/bin/cWnn4/cwnntouch sys/*
#	);
#	(
#		cd zh_TW && \
#		/usr/bin/cWnn4/cwnntouch sys/*
#	);
#	(
#		cd ko_KR && \
#		/usr/bin/kWnn4/kwnntouch sys/*
#	);
}