1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/japanese/netscape48-communicator/files/start.sh.in

26 lines
798 B
Bash

#!/bin/sh
if [ ! -d $HOME/.netscape ]; then
mkdir -m 700 $HOME/.netscape
cp @RDIR@/preferences.js $HOME/.netscape
chmod 644 $HOME/.netscape/preferences.js
fi
export LANG=@LANG@
export LC_ALL=${LANG}
export LC_CTYPE=${LANG}
export MOZILLA_HOME=@NDIR@
export CLASSPATH=.:${MOZILLA_HOME}
export NS_NETHELP_PATH=${MOZILLA_HOME}/${LANG}
export XKEYSYMDB=@X11BASE@/lib/X11/XKeysymDB
export XAPPLRESDIR=@RDIR@
export TIMID_DIR=/usr/local/lib/timidity
export XCMSDB=/dev/null
ulimit -c 0
if [ -e /usr/local/lib/aout/libxpg4-ns.so.2.0 ]; then
export LD_PRELOAD=/usr/local/lib/aout/libxpg4-ns.so.2.0
elif [ x$JA_NETSCAPE_USE_LD_PRELOAD != x -a x$JA_NETSCAPE_USE_LD_PRELOAD != xno ]; then
export LD_PRELOAD=libxpg4.so.2.0
else
export PATH_LOCALE=@RDIR@/locale
fi
exec ${MOZILLA_HOME}/@BROWSER_BIN@ "$@"