Sergiusz Bazanski | 1663e0e | 2019-07-21 16:25:07 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | set -e -o pipefail | ||||
4 | |||||
5 | if [ -z "$hscloud_root" ]; then | ||||
6 | echo 2>&1 "Please first source env.sh" | ||||
7 | exit 1 | ||||
8 | fi | ||||
9 | |||||
10 | cd "${hscloud_root}" | ||||
11 | |||||
12 | bazel build //cluster/tools/... | ||||
13 | |||||
14 | if [ ! -e /nix ] ; then | ||||
15 | echo "WARNING: No Nix installation detected. nix-dependent tools (nixops) will not be built or available." | ||||
16 | else | ||||
17 | bazel build \ | ||||
18 | //cluster/tools:nixops | ||||
19 | fi |