1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/japanese/diclookup-emacs20/files/deinstall-diclookup.sh
Satoshi Asami f53a04c335 Diclookup version 2.3.3, now as a separate port (from dserver). Client
machines can install this one only.  It's also newer than what used
to be in the dserver port, benefitting some people with newer
dictionaries, such as Satoshi (that's me).

PR:		7471
Submitted by:	MITA Yoshio <Yoshio.Mita@isen.fr>
1998-08-03 00:15:02 +00:00

15 lines
599 B
Bash

#!/bin/sh
/usr/bin/dialog --title "ja-diclookup-mule deinstallation script" --clear \
--yesno "\n\
Removing diclookup-mule initialization code from site-start.el \n\
Are you sure?" -1 -1
RETVAL=$?
if [ "X${RETVAL}" = "X0" ] ; then # answer is `Yes'. hack diclookup-mule.
cp PREFIX_DIR/lib/mule/site-lisp/site-start.el PREFIX_DIR/lib/mule/site-lisp/site-start.el.bak
grep -v diclookup-mule PREFIX_DIR/lib/mule/site-lisp/site-start.el.bak > PREFIX_DIR/lib/mule/site-lisp/site-start.el
/usr/bin/dialog --title "Message" --clear \
--msgbox "Thank you for using diclookup-mule. A bientot." -1 -1
fi