blob: d058ea559d3b43a9ca8f8b2e0a261ad08ddfa2f6 [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
15hscloud_path="$hscloud_root/bazel-bin/tools"
16
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}