APEX_VERSION in src/apex.h is the only source of truth, and nothing compared it with what users read. SECURITY.md claimed 0.23.x while the tree was at 0.30.0 for seven releases. tests/version_check.py now checks five places and names each disagreement: man page .TH, README status line, top CHANGELOG heading, SECURITY supported line (<major>.<minor>.x) and the Makefile tarball name (which must derive from APEX_VERSION, not hardcode it). It runs first in tests/run.sh, has its own make version-check target, and is the first step of make release-check. Bump 1.0.0 -> 1.0.1 with all five updated. Red proof: leaving the man page at 1.0.0 fails with 'docs/apex-twin.1 .TH says 1.0.0, header says 1.0.1' and run.sh stops before the suite. Verified: make test (version check + gate audit + 334 checks), make analyze 0, make release-check green through distcheck 1.0.1.
8 lines
261 B
Bash
Executable File
8 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
# Version consistency first (cheap, catches a drift before anything builds),
|
|
# then the static gate audit, then the suite.
|
|
dir=$(dirname "$0")
|
|
python3 "$dir/version_check.py" || exit 1
|
|
python3 "$dir/gate_audit.py" || exit 1
|
|
exec python3 "$dir/run.py"
|