mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2025-04-23 05:12:09 +02:00
makefile: add listlicenses target
lists all license fields in README.md
This commit is contained in:
parent
8ae6c4c7af
commit
67d2b9398c
1 changed files with 10 additions and 5 deletions
15
Makefile
15
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue