2021-01-07 12:07:51 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-06-10 18:19:05 +03:00
|
|
|
# This scripts build the etcd binaries
|
|
|
|
# To build the tools, run `build_tools.sh`
|
2021-01-07 12:07:51 +03:00
|
|
|
|
2023-03-21 16:18:17 +03:00
|
|
|
set -euo pipefail
|
|
|
|
|
2022-06-10 18:19:05 +03:00
|
|
|
source ./scripts/test_lib.sh
|
|
|
|
source ./scripts/build_lib.sh
|
2021-01-07 12:07:51 +03:00
|
|
|
|
|
|
|
# only build when called directly, not sourced
|
|
|
|
if echo "$0" | grep -E "build(.sh)?$" >/dev/null; then
|
2022-06-10 18:19:05 +03:00
|
|
|
run_build etcd_build
|
2021-01-07 12:07:51 +03:00
|
|
|
fi
|