From 67d2b9398c573d1b37faa105b392b4383d689e6c Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 21 Aug 2016 22:22:02 +0200 Subject: [PATCH] makefile: add listlicenses target lists all license fields in README.md --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 6c090d42..239455a3 100644 --- a/Makefile +++ b/Makefile @@ -2,21 +2,26 @@ SHELL = /bin/bash all: checks -checks: missinglicenselanguage nofullstop +checks: nolicenselanguage nofullstop noexternallink: - @echo "Lines with no source/demo/other link:" + @echo -e "\nLines with no source/demo/other link:" @sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep '^ *\* ' | egrep --color=always '[a-z\.] `' -missinglicenselanguage: - @echo "Lines with only 1 or no language/license entry:" +nolicenselanguage: + @echo -e "\nLines with only 1 or no language/license entry:" @sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep '^ *\* ' | egrep -v '` `' nofullstop: - @echo "Lines without a full stop after description:" + @echo -e "\nLines without a full stop after description:" -@sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep '[a-z] \(\[' -@sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep '[a-z] `' + +listlicenses: + @echo -e "\n List of licenses:" + @egrep --only-matching '([Aa0-Zz9]|\s|\.|-)*` `' README.md | sort --unique + contrib: @git shortlog -sne