From 2b7a0d2f46fa17bda52db83619852fdbec61f555 Mon Sep 17 00:00:00 2001 From: taoka Date: Thu, 6 May 1999 13:47:46 +0000 Subject: A file manager on X window with TkStep. PR: 11423 Submitted by: KIRIYAMA Kazuhiko --- x11-fm/binder/scripts/post-install | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 x11-fm/binder/scripts/post-install (limited to 'x11-fm/binder/scripts') diff --git a/x11-fm/binder/scripts/post-install b/x11-fm/binder/scripts/post-install new file mode 100644 index 0000000..68d6db3 --- /dev/null +++ b/x11-fm/binder/scripts/post-install @@ -0,0 +1,41 @@ +#!/bin/sh + +installdir=${PREFIX}/JDE/Binder; export installdir + +case ${LANGUAGE} in + Japanese) + for f in bin/Binder.app bin/Processes.app misc/Mounter/Mounter.app; do + ${PERL} -pi -e ' + s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/ + ' ${installdir}/${f} + done + ;; + *) + ;; +esac +for f in Binder Binder.app Processes.app Mounter.app shortcut; do + case ${f} in + Binder.app|Processes.app) + target=${installdir}/bin/${f} + ;; + Mounter.app) + target=${installdir}/misc/Mounter/${f} + ;; + Binder) + target=${installdir}/defaults/${f} + ;; + shortcut) + target=${installdir}/lib/${f} + ;; + esac + ${PERL} -pi -e ' + s/^([ \t]*set[ \t]+ttblibPath[ \t]+)"[^"]*"$/$1"$ENV{installdir}"/; + s/^([ \t]*set[ \t]+ttblibPath[ \t]+)\{[^\}]*\}$/$1\{$ENV{installdir}\}/; + s@^([a-zA-Z.]+;)/usr/local/([a-zA-Z/.]+;[a-zA-Z]+)$@$1$ENV{PREFIX}/$2@; + ' ${target} +done + +${LN} -sf ${installdir}/bin/Binder.app ${PREFIX}/bin +${LN} -sf ${installdir}/bin/Processes.app ${PREFIX}/bin +${LN} -sf ${installdir}/misc/Mounter/Mounter.app ${PREFIX}/bin +${LN} -sf Mounter.FreeBSD ${installdir}/misc/Mounter/Mounter -- cgit v1.1