2003-06-25 12:01:05 +00:00

38 lines
708 B
Plaintext

#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2003/06/25 12:01:05 wilfried Exp $
#
# Pre/post-installation setup of mozilla
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
MOZ=${PREFIX}/mozilla-firebird
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
cd ${MOZ}
LD_LIBRARY_PATH=${MOZ} ./regxpcom
LD_LIBRARY_PATH=${MOZ} ./regchrome
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0