#!/usr/bin/env bash set -euo pipefail # Clearview build wrapper. Keeps project-specific version handling out of the # shared build-and-push.sh script. # # Usage: # ./build.sh t # increment explicit dev/test build segment, then push :dev # ./build.sh r # validate release version state, then run release build repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$repo_root" mode="${1:-}" case "$mode" in t) ./scripts/bump-dev-build.py ;; r) ./scripts/check-release-version.py ;; *) echo "usage: ./build.sh {t|r}" >&2 exit 2 ;; esac exec ./build-and-push.sh "$@"