mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2025-04-23 13:22:10 +02:00
makefile: add syntaxerrors target (currently detects weird pairings like )(, `` )
add more tests to main makefile target
This commit is contained in:
parent
7696a01a1b
commit
db6ce9ad35
1 changed files with 6 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -2,7 +2,7 @@
|
||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
all: checks
|
all: checks
|
||||||
|
|
||||||
checks: nolicenselanguage nofullstop
|
checks: nolicenselanguage nofullstop longdescriptions syntaxerrors
|
||||||
|
|
||||||
noexternallink:
|
noexternallink:
|
||||||
@echo -e "\nLines with no source/demo/other link:"
|
@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\}'
|
@sed -n -e '/BEGIN SOFTWARE LIST/,/END SOFTWARE LIST/ p' README.md | egrep --only-matching '\) - [Aa-Zz|.|\(|\)|/| |,|-]*\s\(\[' README.md | grep '.\{257\}'
|
||||||
|
|
||||||
listlicenses:
|
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
|
@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:
|
contrib:
|
||||||
@git shortlog -sne
|
@git shortlog -sne
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue