blob: a20f4d8c8bda25372c466efbe2d871cd0104a676 (
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/JGV; export installdir
case ${LANGUAGE} in
Japanese)
for f in JGV.app; do
${PERL} -pi -e '
s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
' ${installdir}/bin/${f}
done
;;
*)
;;
esac
for f in JGV JGV.app; do
case ${f} in
JGV.app)
target=${installdir}/bin/${f}
;;
JGV)
target=${installdir}/defaults/${f}
;;
esac
${PERL} -pi -e '
s/^([ \t]*set[ \t]+Jlib[ \t]+)"[^"]*"$/$1"$ENV{installdir}"/;
' ${target}
done
${LN} -sf ${installdir}/bin/JGV.app ${PREFIX}/bin
|