#! /usr/bin/ksh
#
# ident	"@(#)cmshome_wrapper.sh	1.4	98/05/13 SMI"
#
# Copyright (c) 1996 by Sun Microsystems, Inc.
# All rights reserved.
#
# Generic wrapper for CMS commands to pick up CMS (and libfru) library
#
: ${CMSHOME:=XX_CLIENT_BASEDIR_XX}
export CMSHOME

# Do a 'basename' on $0 (efficiently).
CMD=${0##*/}

LD_LIBRARY_PATH="$CMSHOME/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
exec $CMSHOME/lib/$CMD "$@"

