lean4-htt/tests/lean/copy-produced

11 lines
271 B
Bash
Executable file

#!/usr/bin/env bash
#
# Updates all *.expected.out files it finds within tests/lean
#
find "$(dirname "$0")" -name '*.expected.out' |
while read -r to; do
from="${to/.expected.out/.produced.out}"
[ ! -f "$from" ] || cmp -s "$from" "$to" || cp -v "$from" "$to"
done