diff --git a/Documentation/Books/Makefile b/Documentation/Books/Makefile index df2d8507c2..df3bc8bc87 100644 --- a/Documentation/Books/Makefile +++ b/Documentation/Books/Makefile @@ -40,18 +40,18 @@ book-check-mdpp-leftovers: fi ppbook-check-html-link: - @if test "`grep -r '\[.*\]\(.*\)' ppbooks/$(NAME) |grep html |grep -v http://|grep -v https:// |grep -v header.css |wc -l`" -gt 0; then \ + @if test "`grep -r '\[.*\]\(.*\)' ppbooks/$(NAME) |grep '\.md:' |grep html |grep -v http://|grep -v https:// |grep -v header.css |wc -l`" -gt 0; then \ echo "Found links to .html files inside of the document! use .md instead!"; \ echo; \ - grep -r '\[.*\]\(.*\)' ppbooks/$(NAME) |grep html |grep -v http://|grep -v https:// |grep -v header.css ; \ + grep -r '\[.*\]\(.*\)' ppbooks/$(NAME) | grep '\.md:' | grep html |grep -v http://|grep -v https:// |grep -v header.css ; \ exit 1; \ fi ppbook-check-directory-link: - @if test "`egrep -r '\[.*\]\(.*\)' ppbooks/$(NAME) |grep -v html |grep -v http://|grep -v https:// |grep -v header.css |grep -v node_modules |grep -v node_modules | grep -v '\.md' | wc -l`" -gt 0; then \ - echo "Found links to .html files inside of the document! use .md instead!"; \ + @if test "`egrep -r '\[.*\]\(.*\)' ppbooks/$(NAME) | grep '\.md:' |grep -v html |grep -v http://|grep -v https:// |grep -v header.css |grep -v node_modules |grep -v node_modules | grep -v '\.md' | wc -l`" -gt 0; then \ + echo "Found director links! use ..//README.md instead!"; \ echo; \ - egrep -r '\[.*\]\(.*\)' ppbooks/$(NAME) |grep -v html |grep -v http://|grep -v https:// |grep -v header.css |grep -v node_modules |grep -v node_modules | grep -v '\.md' ; \ + egrep -r '\[.*\]\(.*\)' ppbooks/$(NAME) |grep '\.md:' |grep -v html |grep -v http://|grep -v https:// |grep -v header.css |grep -v node_modules |grep -v node_modules | grep -v '\.md' ; \ exit 1; \ fi