mirror of
https://github.com/bitcoin/bips.git
synced 2025-12-22 14:45:19 +00:00
Use a hardcoded delta rather than requiring the delta to never change, so that it can be changed deliberately when desired without breaking CI. Also avoids the need to checkout the previous commit, so no longer changes the repository state.
11 lines
354 B
Bash
Executable File
11 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
|
|
scripts/buildtable.pl >/tmp/table.mediawiki 2> /dev/null
|
|
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true
|
|
newdiff=$(diff -s scripts/diffcheck.expected /tmp/after.diff -u | grep '^[-+]')
|
|
if [ -n "$newdiff" ]; then
|
|
echo "$newdiff"
|
|
exit 1
|
|
fi
|
|
echo "README table matches expected table from BIP files"
|