summaryrefslogtreecommitdiffstats
path: root/x11-fm/binder/scripts
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>1999-05-06 13:47:46 +0000
committertaoka <taoka@FreeBSD.org>1999-05-06 13:47:46 +0000
commit2b7a0d2f46fa17bda52db83619852fdbec61f555 (patch)
treead0b3fd26a2c4562a53d80296039cf61d31ebc92 /x11-fm/binder/scripts
parent6e42af1c676baafc277acf2689cef624b08ae810 (diff)
downloadFreeBSD-ports-2b7a0d2f46fa17bda52db83619852fdbec61f555.zip
FreeBSD-ports-2b7a0d2f46fa17bda52db83619852fdbec61f555.tar.gz
A file manager on X window with TkStep.
PR: 11423 Submitted by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
Diffstat (limited to 'x11-fm/binder/scripts')
-rw-r--r--x11-fm/binder/scripts/post-install41
1 files changed, 41 insertions, 0 deletions
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
OpenPOWER on IntegriCloud