#!/usr/bin/env sh
# This confidential and proprietary software may be used only as
# authorised by a licensing agreement from ARM Limited
#   (C) COPYRIGHT 2010-2024 ARM Limited
#       ALL RIGHTS RESERVED
# The entire notice above must be reproduced on all authorised
# copies and copies may only be made to the extent permitted
# by a licensing agreement from ARM Limited.

# This script runs the Graphics Analyzer host side application in
# headless (command-line) mode.

# GA needs to be run from its own directory. This script tries to move
# into this directory based upon $0, which should normally be the script
# path. If a move to this directory fails, we will attempt to run "aga"
# from the directory from which this script was invoked.

SCRIPT_DIR=`dirname "$0"`
cd "$SCRIPT_DIR"
exec ./aga -noSplash --headless "$@"
