#!/bin/sh
###############################################################################
##
##          DELL INC. PROPRIETARY INFORMATION
##
##  This software is supplied under the terms of a license agreement or
##  nondisclosure agreement with Dell Inc. and may not be copied or disclosed
##  except in accordance with the terms of that agreement.
##
##  Copyright (c) 2003 Dell Inc. All Rights Reserved.
##
##  Abstract/Purpose:
##    Script is used to install Disney and handle any error that may occur
##    in installation.
##
##  Environment:
##    Linux
##
##  Version:
##    $Revision $
##
##  Last Modified by/on:
##    $Author: $ / $Date: $
##
###############################################################################
typeset -i _EXITCODE=0
typeset -r _ROOT="."
OLDDIR=`pwd`
cp -r ${_ROOT}/bin/Linux/hapi /tmp/hapi > /dev/null 2>&1
cd /tmp/hapi > /dev/null 2>&1
sh disneyinstall.sh $@
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/dell/dup/lib:/opt/dell/dup64/lib
_EXITCODE=$?
rm -rf /tmp/hapi
cd - > /dev/null 2>&1
exit ${_EXITCODE}
