#!/bin/sh
# $Id: vxlogview.sh,v 1.6 2005/07/12 17:51:16 $
#*****************************************************************************
# $VRTScprght: Copyright 1993 - 2005 VERITAS Software Corporation, All Rights Reserved $
#*****************************************************************************

# The following variable is changed by the Makefile to a valid value.

MACHINE=Linux

#export the path to vxul_root.res
VRTSLOG_RES_PATH=/usr/openv/resources
export VRTSLOG_RES_PATH

LLP=/usr/openv/lib

#
# The jre/bin directory is required for some VxUL functionality
#
JVMLIBPATH=`find /usr/openv/java -name libjvm.so | grep client`
if [ ! -z "$JVMLIBPATH" ] ; then
    JVMLIBPATH=`dirname $JVMLIBPATH`
    LLP="${LLP}:${JVMLIBPATH}"
fi

case "${MACHINE}" in
	HP*)
		SHLIB_PATH=${LLP}
		export SHLIB_PATH
		;;

	ALPHA | Linux* | Solaris)
		LD_LIBRARY_PATH=${LLP}
		export LD_LIBRARY_PATH
		;;

	RS6000)
		LIBPATH=${LLP}
		export LIBPATH
		;;
esac		

exec /usr/openv/netbackup/bin/private/nblogview "$@"
