#!/bin/bash # Rebuild row 121's candidate: export BASE, apply build.patch, check every # digest in candidate-manifest.sha256. Run from the packet directory. set -euo pipefail BASE=20d2b578814df1a2e24c7cb27b1dadba3702b3a8 HERE=$(cd "$(dirname "$0")" && pwd) X=$(mktemp -d) trap 'rm -rf "$X"' EXIT git -C /mnt/storage/src/mosaic-stack archive "$BASE" | tar -x -C "$X" cd "$X" git apply "$HERE/build.patch" sha256sum -c --quiet "$HERE/candidate-manifest.sha256" && echo DIGESTS_OK