summaryrefslogtreecommitdiff
path: root/x11-fm/binder/scripts/post-install
blob: 37fc460e68e2b7518ee59956d771edddb069fe70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

installdir=${PREFIX}/JDE/Binder; export installdir

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
    ${REINPLACE_CMD} -i "" -E \
	-e "s@^([[:space:]]*set[[:space:]]+ttblibPath[[:space:]]+)\"[^\"]*\"\$@\1\"${installdir}\"@" \
	-e "s@^([[:space:]]*set[[:space:]]+ttblibPath[[:space:]]+)\{[^\}]*\}\$@\1\{${installdir}\}@" \
	-e "s@^([a-zA-Z.]+;)/usr/local/([a-zA-Z/.]+;[a-zA-Z]+)\$@\1${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