Skip to content

Commit

Permalink
env: include dependencies/bin to PATH
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
Vitor Bandeira committed Jan 15, 2024
1 parent 3566c10 commit 3af897d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions env.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
if [[ "$OSTYPE" == "darwin"* ]]; then
modroot="$(dirname $(perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"))/tools"
DIR="$(dirname $(perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"))"
else
modroot="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/tools"
fi

if [ ! -d "${modroot}" ]; then
echo "Module path does not exist: ${modroot}"
return 1
DIR="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
fi

if [ -f /opt/rh/rh-python38/enable ]; then
source /opt/rh/rh-python38/enable
fi

export OPENROAD=${modroot}/OpenROAD
export OPENROAD=${DIR}/tools/OpenROAD
echo "OPENROAD: ${OPENROAD}"

export PATH=${modroot}/install/OpenROAD/bin:${modroot}/install/yosys/bin:${modroot}/install/LSOracle/bin:$PATH
export PATH=${DIR}/tools/install/OpenROAD/bin:$PATH
export PATH=${DIR}/tools/install/yosys/bin:$PATH
export PATH=${DIR}/tools/install/LSOracle/bin:$PATH
export PATH=${DIR}/dependencies/bin:$PATH

if [[ "$OSTYPE" == "darwin"* ]]; then
export PATH="/Applications/KLayout/klayout.app/Contents/MacOS:$PATH"
Expand Down

0 comments on commit 3af897d

Please sign in to comment.