summaryrefslogtreecommitdiffstats
path: root/japanese/man/pkg-install
diff options
context:
space:
mode:
authoritojun <itojun@FreeBSD.org>1998-03-20 16:49:43 +0000
committeritojun <itojun@FreeBSD.org>1998-03-20 16:49:43 +0000
commitecb0055aaee9bfb160d9d3cf7dcf5f0b4d94fc84 (patch)
tree4ce3411f6b2bbb807e0283598c09d2ddfb24be35 /japanese/man/pkg-install
parent85020061345e832ad87e561bd6fd74183aa9fcb5 (diff)
downloadFreeBSD-ports-ecb0055aaee9bfb160d9d3cf7dcf5f0b4d94fc84.zip
FreeBSD-ports-ecb0055aaee9bfb160d9d3cf7dcf5f0b4d94fc84.tar.gz
original distribution updated to 1.1f.
simplify xpg4 related things. do not depend on emacs. PR: 5251
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 4bd69c4..1d1ab6f 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
-
OpenPOWER on IntegriCloud