summaryrefslogtreecommitdiff
path: root/graphics/jgv/scripts/post-install
blob: 114f95d8b249fea8d7772b89f8e46c99eaa7ceae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

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

for f in JGV JGV.app; do
    case ${f} in
	JGV.app)
	    target=${installdir}/bin/${f}
	;;
	JGV)
	    target=${installdir}/defaults/${f}
	;;
    esac
    ${REINPLACE_CMD} -i "" -E -e \
	"s@^([[:space:]]*set[[:space:]]+Jlib[[:space:]]+)\"[^\"]*\"\$@\1\"${installdir}/\"@" \
	${target}
done

${LN} -sf ${installdir}/bin/JGV.app ${PREFIX}/bin