#!/bin/sh
# $Id$
#*****************************************************************************
# $Copyright: Copyright (c) 2022 Veritas Technologies LLC. All rights reserved $
#*****************************************************************************

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

MACHINE=RS6000

# Set umask to 022 to make sure files and directories
# are not created with world writable permissions.
umask 022

#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 2>/dev/null | grep client`
if [ ! -z "$JVMLIBPATH" ] ; then
    JVMLIBPATH=`dirname $JVMLIBPATH`
    LLP="${LLP}:${JVMLIBPATH}"
fi

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

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

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

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