mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Add consistency check for dependencies listed in README.md and doc/INSTALL.md
This commit is contained in:
committed by
Rusty Russell
parent
5357a6f02d
commit
a08b6fffc6
5
Makefile
5
Makefile
@@ -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
8
tools/check-markdown.sh
Executable 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
|
||||
Reference in New Issue
Block a user