Add consistency check for dependencies listed in README.md and doc/INSTALL.md

This commit is contained in:
practicalswift 2018-01-18 17:35:56 +01:00 committed by Rusty Russell
parent 5357a6f02d
commit a08b6fffc6
2 changed files with 12 additions and 1 deletions

View file

@ -220,7 +220,10 @@ check-whitespace/%: %
check-whitespace: check-whitespace/Makefile check-whitespace/tools/check-bolt.c $(ALL_TEST_PROGRAMS:%=check-whitespace/%.c)
check-source: check-makefile check-source-bolt check-whitespace
check-markdown:
@tools/check-markdown.sh
check-source: check-makefile check-source-bolt check-whitespace check-markdown
full-check: check check-source

8
tools/check-markdown.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
diff -u <(egrep 'sudo apt-get install .*git' README.md) \
<(egrep 'sudo apt-get install .*git' doc/INSTALL.md)
if [[ $? != 0 ]]; then
echo "Dependencies listed in README.md are not identical to those listed in doc/INSTALL.md (see above). Please fix."
exit 1
fi