summaryrefslogtreecommitdiff
path: root/japanese/man/pkg-install
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@FreeBSD.org>1998-03-20 16:49:43 +0000
committerJun-ichiro itojun Hagino <itojun@FreeBSD.org>1998-03-20 16:49:43 +0000
commit6b204d5c4433e10194f3889be52b1d6203846e41 (patch)
treed655e7b5f79b45ca44a20fc6426c35cb6a436604 /japanese/man/pkg-install
parentMakefile simplifications. (diff)
original distribution updated to 1.1f.
simplify xpg4 related things. do not depend on emacs. PR: 5251
Notes
Notes: svn path=/head/; revision=10241
Diffstat (limited to 'japanese/man/pkg-install')
-rw-r--r--japanese/man/pkg-install34
1 files changed, 10 insertions, 24 deletions
diff --git a/japanese/man/pkg-install b/japanese/man/pkg-install
index 4bd69c476b81..1d1ab6fd8018 100644
--- a/japanese/man/pkg-install
+++ b/japanese/man/pkg-install
@@ -1,28 +1,14 @@
#!/bin/sh
-TOUCH=${TOUCH:-/usr/bin/touch}
-
-elispdir=${PKG_PREFIX}/lib/mule/site-lisp
-
-OptionStart=";;; Jman configuration options"
-OptionEnd=";;; End of Jman configuration options"
-
-if [ "X$2" = X"POST-INSTALL" ]; then
- if [ ! -f ${elispdir}/site-start.el ]; then
- ${TOUCH} ${elispdir}/site-start.el
+if [ "X$2" = X"PRE-INSTALL" ]; then
+ for d in /usr/local/man /usr/X11R6/man; do
+ if [ -d ${d}/ja_JP.EUC ]; then
+ if [ -d ${d}/ja ]; then
+ (cd ${d}; tar cf - -C ja_JP.EUC . | tar xfp - -C ja; \
+ rm -rf ${d}/ja_JP.EUC; ln -s ja ja_JP.EUC )
+ else
+ (cd ${d}; mv ja_JP.EUC ja; ln -s ja ja_JP.EUC )
+ fi
fi
- if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then
- sed -e "/^${OptionStart}/,/^${OptionEnd}/d" \
- ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
- mv ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
- fi
- echo "Adding \"Jman\" entry to ${elispdir}/site-start.el"
- echo "${OptionStart}" >> ${elispdir}/site-start.el
- echo "(setq load-path (cons \"${elispdir}/jman\" load-path))" \
- >> ${elispdir}/site-start.el
- echo "(autoload 'jman \"jman\" nil t)" >> ${elispdir}/site-start.el
- echo "${OptionEnd}" \
- >> ${elispdir}/site-start.el
- exit 0
+ done
fi
-