2021-10-16 20:53:51 +00:00
|
|
|
# Source this file to have hscloud tools available in your PATH after running
|
|
|
|
# `bazel run //tools:install`.
|
2018-11-01 22:39:01 +01:00
|
|
|
|
|
|
|
if [ "$0" == "$BASH_SOURCE" ]; then
|
|
|
|
echo "You should be sourcing this."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-10-16 20:53:51 +00:00
|
|
|
hscloud_root="$( cd "$(dirname "$BASH_SOURCE")"; pwd -P )"
|
2019-01-13 17:51:34 +01:00
|
|
|
if [ ! -f "$hscloud_root/WORKSPACE" ]; then
|
|
|
|
echo "Could not find WORKSPACE"
|
|
|
|
exit 1
|
|
|
|
fi
|
2019-07-21 16:25:07 +02:00
|
|
|
hscloud_path="$hscloud_root/bazel-bin/tools:$hscloud_root/bazel-bin/cluster/tools"
|
2019-01-13 17:51:34 +01:00
|
|
|
[[ ":$PATH:" != *":$hscloud_path:"* ]] && PATH="$hscloud_path:${PATH}"
|
2021-10-16 20:53:51 +00:00
|
|
|
unset -f hscloud_root
|
|
|
|
unset -f hscloud_path
|
2019-01-13 17:51:34 +01:00
|
|
|
|
2021-10-16 20:53:51 +00:00
|
|
|
# Leftover junk. This should be removed, as env.sh is now optional.
|
|
|
|
# Do _not_ add more aliases!
|
2020-06-05 23:37:34 +02:00
|
|
|
alias bajzel=bazel
|
2019-01-13 21:14:02 +01:00
|
|
|
gpg-unlock() {
|
|
|
|
echo "test" | gpg2 --sign --batch --no-tty -o /dev/null
|
2019-01-13 13:32:19 +01:00
|
|
|
}
|