1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/misc/seizedesktop/scripts/post-install
Satoshi Taoka 90647c82d8 A customizer of disktop screen environment.
PR:		11423
Submitted by:	KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
1999-05-06 14:08:03 +00:00

32 lines
756 B
Bash

#!/bin/sh
installdir=${PREFIX}/JDE/SeizeDesktop; export installdir
case ${LANGUAGE} in
Japanese)
for f in SeizeDesktop.app PrefDesktop.app; do
${PERL} -pi -e '
s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
' ${installdir}/bin/${f}
done
;;
*)
;;
esac
for f in SeizeDesktop SeizeDesktop.app PrefDesktop.app; do
case ${f} in
SeizeDesktop.app|PrefDesktop.app)
target=${installdir}/bin/${f}
;;
SeizeDesktop)
target=${installdir}/default/${f}
;;
esac
${PERL} -pi -e '
s/^([ \t]*set[ \t]+dtLib[ \t]+)"[^"]*"$/$1"$ENV{installdir}"/;
' ${target}
done
${LN} -sf ${installdir}/bin/SeizeDesktop.app ${PREFIX}/bin
${LN} -sf ${installdir}/bin/PrefDesktop.app ${PREFIX}/bin