#!/usr/bin/sh
# *****************************************************************************
# *****************************************************************************
# oaCacheTool
#
# This script is the wrapper for oaCacheTool. You can set the following options
# depending on how you would like to use oaCacheTool.
#
# Mode:
# The default use is to run the optimized mode.  To specify debug mode
# for all programs, you should set the OA_MODE environment variable to 'dbg'.
#
# To set the mode to 'dbg' on an individual program you should
# set the BINARYNAME_MODE environment variable to 'dbg'.
#
# *****************************************************************************
# Except as specified in the OpenAccess terms of use of Cadence or Silicon
# Integration Initiative, this material may not be copied, modified,
# re-published, uploaded, executed, or distributed in any way, in any medium,
# in whole or in part, without prior written permission from Cadence.
#
#                  Copyright 2023 Cadence Design Systems, Inc.
#                         All Rights Reserved Worldwide.
#
# $Revision: #1 $
#
# *****************************************************************************
# *****************************************************************************


PROGRAM=oaCacheTool
INSTALL_ROOT=`dirname $0`
unset cdpath
INSTALL_ROOT=`cd $INSTALL_ROOT/..;pwd`

BIT=64

MODE=${OA_MODE:-opt}
MODE=${OAZIP_MODE:-$MODE}

exec $INSTALL_ROOT/bin/runExe $PROGRAM $INSTALL_ROOT $BIT $MODE $ARGS "$@"
