etcd/scripts/build.sh
Eduardo Patrocinio 5a93b087a6 Separate the build library functions and add a top level tools script
The current Makefile doesn't allow the compilation of the tools directory.
This commit creates a build library file, updates the Makefile
and a top level script fod building tools.

To build the tools, you can run make build_tools.

As before, you can run make build to build etcd binaries.
2022-06-10 11:43:10 -04:00

13 lines
292 B
Bash
Executable File

#!/usr/bin/env bash
# This scripts build the etcd binaries
# To build the tools, run `build_tools.sh`
source ./scripts/test_lib.sh
source ./scripts/build_lib.sh
# only build when called directly, not sourced
if echo "$0" | grep -E "build(.sh)?$" >/dev/null; then
run_build etcd_build
fi