1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/editors/muggy/scripts/post-install
2003-05-08 11:00:15 +00:00

31 lines
676 B
Bash

#!/bin/sh
installdir=${PREFIX}/JDE/Muggy; export installdir
case ${LANGUAGE} in
Japanese)
for f in Muggy.app; do
${REINPLACE_CMD} -i "" -E -e \
"s/^(exec[[:space:]]+)wishstep[[:space:]]*([[:space:]]+.*)\$/\1wishstep${VERSION}jp\2/" \
${installdir}/bin/${f}
done
;;
*)
;;
esac
for f in Muggy Muggy.app; do
case ${f} in
Muggy.app|PrefMuggy.app)
target=${installdir}/bin/${f}
;;
Muggy)
target=${installdir}/defaults/${f}
;;
esac
${REINPLACE_CMD} -i "" -E -e \
"s@^([[:space:]]*set[[:space:]]+Jlib[[:space:]]+)\"[^\"]*\"\$@\1\"${installdir}/\"@" \
${target}
done
${LN} -sf ${installdir}/bin/Muggy.app ${PREFIX}/bin