mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-10 00:09:04 +01:00
doc: Remove redundant schema check
This commit is contained in:
parent
dfea5fbe6d
commit
d324d698f0
1 changed files with 2 additions and 17 deletions
17
doc/Makefile
17
doc/Makefile
|
@ -241,20 +241,5 @@ doc/index.rst: $(MANPAGES:=.md)
|
|||
|
||||
# Overridden by GH CI if necessary.
|
||||
BASE_REF=master
|
||||
schema-added-check:
|
||||
if git show --format=%B -s $(BASE_REF).. | grep -q '^No-schema-diff-check'; then echo $@ suppressed; exit 0; fi; \
|
||||
if git diff $(BASE_REF) -- doc/schemas | grep -q '^+.*{' && ! git diff $(BASE_REF) -- doc/schemas | grep -q '^+.*"added"'; then \
|
||||
git diff $(BASE_REF) -- doc/schemas; \
|
||||
echo 'New schema fields must have "added": "vNEXTVERSION"' >&2; exit 1; \
|
||||
fi
|
||||
|
||||
schema-removed-check:
|
||||
if git show --format=%B -s $(BASE_REF).. | grep -q '^No-schema-diff-check'; then echo $@ suppressed; exit 0; fi; \
|
||||
if git diff $(BASE_REF) -- doc/schemas | grep -q '^-.*{' && ! git diff $(BASE_REF) -- doc/schemas | grep -q '^-.*"deprecated"' && ! git diff $(BASE_REF) -- doc/schemas | grep -q '^-.*EXPERIMENTAL_FEATURES'; then \
|
||||
git diff $(BASE_REF) -- doc/schemas ; \
|
||||
echo 'Schema fields must be "deprecated", with version, not removed' >&2; exit 1; \
|
||||
fi
|
||||
|
||||
schema-diff-check: schema-added-check schema-removed-check
|
||||
|
||||
check-source: schema-diff-check
|
||||
check-source:
|
||||
|
|
Loading…
Add table
Reference in a new issue