forked from The-OpenROAD-Project/OpenROAD-flow-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.sh
executable file
·25 lines (20 loc) · 839 Bytes
/
env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if [[ "$OSTYPE" == "darwin"* ]]; then
modroot="$(dirname $(perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"))/tools"
else
modroot="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/tools"
fi
if [ ! -d "${modroot}" ]; then
echo "Module path does not exist: ${modroot}"
return 1
fi
if [ -f /opt/rh/rh-python38/enable ]; then
source /opt/rh/rh-python38/enable
fi
export OPENROAD=${modroot}/OpenROAD
echo "OPENROAD: ${OPENROAD}"
export PATH=${modroot}/install/OpenROAD/bin:${modroot}/install/yosys/bin:${modroot}/install/LSOracle/bin:$PATH
if [[ "$OSTYPE" == "darwin"* ]]; then
export PATH="/Applications/KLayout/klayout.app/Contents/MacOS:$PATH"
export PATH="$(brew --prefix bison)/bin:$(brew --prefix flex)/bin:$(brew --prefix tcl-tk)/bin:$PATH"
export CMAKE_PREFIX_PATH="$(brew --prefix or-tools)"
fi