#!/bin/bash

## Copyright 2009-2021 Intel Corporation
## SPDX-License-Identifier: Apache-2.0

pushd . > /dev/null
SCRIPT_PATH="${BASH_SOURCE[0]}";
if ([ -h "${SCRIPT_PATH}" ]) then
  while([ -h "${SCRIPT_PATH}" ]) do cd `dirname "$SCRIPT_PATH"`; SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
fi
cd "`dirname "$SCRIPT_PATH"`" > /dev/null
SCRIPT_PATH=`pwd`;
popd > /dev/null

CPATH="$SCRIPT_PATH/include:${CPATH}"
export CPATH

LIBRARY_PATH="$SCRIPT_PATH//usr/lib:${LIBRARY_PATH}"
export LIBRARY_PATH

LD_LIBRARY_PATH="$SCRIPT_PATH//usr/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
