File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33# Set developer paths and environment variables here,
44# user settings go in ./env.sh
55function __setpaths() {
6- local DIR=$( readlink -f " $( dirname " ${BASH_SOURCE[0]} " ) " )
6+ local DIR=$( readlink -f " $( dirname " ${BASH_SOURCE[0]:- ${( % ) :-% x} } " ) " )
77 [ " $( find $DIR /dependencies -type f -user root) " ] && echo " WARNING! Files set up by sudo found in $DIR "
88 export PATH=" $DIR /dependencies/bin:$PATH "
99 export CMAKE_INSTALL_RPATH=$DIR /dependencies/lib:$DIR /dependencies/lib64
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22function __setpaths() {
33 if [[ " $OSTYPE " == " darwin" * ]]; then
4- DIR=" $( dirname $( perl -e ' use Cwd "abs_path";print abs_path(shift)' " ${BASH_SOURCE[0]} " ) ) "
4+ DIR=" $( dirname $( perl -e ' use Cwd "abs_path";print abs_path(shift)' " ${BASH_SOURCE[0]:- ${( % ) :-% x} } " ) ) "
55 else
6- DIR=" $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) ) "
6+ DIR=" $( dirname $( readlink -f " ${BASH_SOURCE[0]:- ${( % ) :-% x} } " ) ) "
77 fi
88
99 export OPENROAD=${DIR} /tools/OpenROAD
You can’t perform that action at this time.
0 commit comments