1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/x11-fm/binder/scripts/post-install
Satoshi Taoka 8a4b81194c A file manager on X window with TkStep.
PR:		11423
Submitted by:	KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
1999-05-06 13:47:46 +00:00

42 lines
1.1 KiB
Bash

#!/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