blob: 9b407246d291bf3527439e7b4b5c5f9c7a25f0e9 [file] [log] [blame]
Serge Bazanskic6fd6622018-11-01 22:39:01 +01001# source me to have all the nice things
2
3if [ "$0" == "$BASH_SOURCE" ]; then
4 echo "You should be sourcing this."
5 exit 1
6fi
7
Sergiusz Bazanskide061802019-01-13 21:14:02 +01008export hscloud_root="$( cd "$(dirname "$BASH_SOURCE")"; pwd -P )"
Serge Bazanskic6fd6622018-11-01 22:39:01 +01009
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +010010if [ ! -f "$hscloud_root/WORKSPACE" ]; then
11 echo "Could not find WORKSPACE"
12 exit 1
13fi
14
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +020015hscloud_path="$hscloud_root/bazel-bin/tools:$hscloud_root/bazel-bin/cluster/tools"
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +010016
17[[ ":$PATH:" != *":$hscloud_path:"* ]] && PATH="$hscloud_path:${PATH}"
18
Sergiusz Bazanskide061802019-01-13 21:14:02 +010019gpg-unlock() {
20 echo "test" | gpg2 --sign --batch --no-tty -o /dev/null
Sergiusz Bazanskib0b0f3f2019-01-13 13:32:19 +010021}