blob: a746119ec114bd4b66b544c503338a09b2b26261 (
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
31
32
33
34
35
36
37
38
39
40
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
${REINPLACE_CMD} -E -e \
"s/^(exec[[:space:]]+)wishstep[[:space:]]*([[:space:]]+.*)\$/\1wishstep${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
${REINPLACE_CMD} -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
|