From db6ce9ad357f28edeeeb9eeb9b68b82706266f6f Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 21 Aug 2016 23:51:24 +0200 Subject: [PATCH] makefile: add syntaxerrors target (currently detects weird pairings like )(, `` ) add more tests to main makefile target --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 926a8222..f79a903b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL = /bin/bash all: checks -checks: nolicenselanguage nofullstop +checks: nolicenselanguage nofullstop longdescriptions syntaxerrors noexternallink: @echo -e "\nLines with no source/demo/other link:" @@ -22,9 +22,13 @@ longdescriptions: @sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep --only-matching '\) - [Aa-Zz|.|\(|\)|/| |,|-]*\s\(\[' README.md | grep '.\{257\}' listlicenses: - @echo -e "\n List of licenses:" + @echo -e "\nList of licenses:" @sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep --only-matching '([Aa0-Zz9]|\s|\.|-)*` `' README.md | sort --unique +syntaxerrors: + @echo -e "\n Syntax errors:" + @sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep '\)\(|``' + contrib: @git shortlog -sne