forked from oxidecomputer/omicron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.sh
25 lines (22 loc) · 782 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
# omicron environment file: source this file to set up your PATH to use the
# various tools in the Omicron workspace where this file lives. The test suite
# and other commands expect these copies of these tools to be on your PATH.
#
# See also: ./.envrc
OLD_SHELL_OPTS=$-
set -o xtrace
OMICRON_WS=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
export PATH="$OMICRON_WS/out/cockroachdb/bin:$PATH"
export PATH="$OMICRON_WS/out/clickhouse:$PATH"
export PATH="$OMICRON_WS/out/dendrite-stub/bin:$PATH"
export PATH="$OMICRON_WS/out/mgd/root/opt/oxide/mgd/bin:$PATH"
# if xtrace was set previously, do not unset it
case $OLD_SHELL_OPTS in
*x*)
unset OLD_SHELL_OPTS OMICRON_WS
;;
*)
unset OLD_SHELL_OPTS OMICRON_WS
set +o xtrace
;;
esac