#!/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
