1
0
Fork 0

Check whether all .md files are found in the summary.md

This commit is contained in:
Willi Goesgens 2015-05-26 11:15:38 +02:00
parent bf61f6cd02
commit 81ed50551a
1 changed files with 9 additions and 0 deletions

View File

@ -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