mirror of https://gitee.com/bigwinds/arangodb
Check whether all .md files are found in the summary.md
This commit is contained in:
parent
bf61f6cd02
commit
81ed50551a
|
@ -45,6 +45,15 @@ check-docublocks:
|
|||
exit 1; \
|
||||
fi
|
||||
|
||||
check-summary:
|
||||
find -name \*.md |sed -e "s;./Users/;;" |grep -v ^SUMMARY.md$ |sort > /tmp/is_md.txt
|
||||
cat Users/SUMMARY.md |sed -e "s;.*(;;" -e "s;).*;;" |sort |grep -v '# Summary' > /tmp/is_summary.txt
|
||||
comm -3 /tmp/is_md.txt /tmp/is_summary.txt
|
||||
if test "`comm -3 /tmp/is_md.txt /tmp/is_summary.txt|wc -l`" -ne 0; then \
|
||||
echo "not all files are mapped to the summary!"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
clean: clean-md-files clean-books
|
||||
rm -f allComments.txt
|
||||
|
||||
|
|
Loading…
Reference in New Issue