cmevs-code / tools /make_sha256sums.sh
anon-cmevs-2026's picture
Finalize team code attribution, release integrity and smoke-test correctness
4b8c78e verified
Raw History Blame Contribute Delete
572 Bytes
#!/usr/bin/env bash
# Generate/verify the code manifest. Outputs, caches and historical H100
# inventories are excluded; see release_integrity.py and README.md.
# Usage: bash tools/make_sha256sums.sh generate|verify [ROOT [MANIFEST]]
# ROOT defaults to the current directory. A supplied relative MANIFEST is
# resolved against the caller's current directory.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PYTHON_BIN="${PYTHON:-python3}"
if [[ $# -eq 0 ]]; then
set -- generate
fi
exec "$PYTHON_BIN" "$SCRIPT_DIR/release_integrity.py" "$@"