spiegel-keyman/common/mac/build.sh
Marc Durdin b003e7b4bf chore(common): builder_describe and builder_parse should come first
builder_describe and builder_parse should come before other tests, so
that (a) scripts can return --help details, and (b) so that
builder.inc.sh can tell that the script is a valid builder script, even
if environment means that the script will not otherwise run.
2024-05-02 15:54:32 +07:00

28 lines
719 B
Bash
Executable file

#!/usr/bin/env bash
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
. "${THIS_SCRIPT%/*}/../../resources/build/builder.inc.sh"
## END STANDARD BUILD SCRIPT INCLUDE
#
# TODO: when we have mac-specific tests, add them here
# as child modules
#
builder_describe "Keyman common mac modules" \
clean \
configure \
build \
test
builder_parse "$@"
if [[ $BUILDER_OS != mac ]]; then
builder_echo grey "Platform is not macOS; skipping common/mac"
exit 0
fi
#-------------------------------------------------------------------------------------------------------------------
builder_run_child_actions clean configure build test