summaryrefslogtreecommitdiff
path: root/graphics/jgv/scripts/post-install
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-05-06 13:57:56 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-05-06 13:57:56 +0000
commit36fb0eadfbea340cd70fd2d8adfcfb752291f2a5 (patch)
treefc7e8c4d3e83ff83d39b14b25ee43439cd1367ed /graphics/jgv/scripts/post-install
parentA simple compress utilty using on JDE. (for Japanese) (diff)
A graphic viewer with various image types.
PR: 11423 Submitted by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
Notes
Notes: svn path=/head/; revision=18554
Diffstat (limited to '')
-rw-r--r--graphics/jgv/scripts/post-install30
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics/jgv/scripts/post-install b/graphics/jgv/scripts/post-install
new file mode 100644
index 000000000000..a20f4d8c8bda
--- /dev/null
+++ b/graphics/jgv/scripts/post-install
@@ -0,0 +1,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