#!/bin/bash # Local end-to-end build of one versitygw tag: clone -> patch -> build. # Runs the same ci/ steps CI does, in a single shell so VGW_* env flows # between them. # # VGW_TAG=v1.5.0 bash ci/run.sh # # Optional: point VGW_REPO_URL at a local clone for fast offline builds. set -euo pipefail : "${VGW_TAG:?set VGW_TAG, e.g. VGW_TAG=v1.5.0 bash ci/run.sh}" export VGW_TAG export VGW_SRC_DIR="${VGW_SRC_DIR:-src}" DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" bash "${DIR}/clone-source.sh" bash "${DIR}/apply-patches.sh" bash "${DIR}/build.sh" echo ">>> done — artifacts in ${VGW_SRC_DIR}/dist/"