瀏覽代碼

Makefile: check for lines without a full stop after description

nodiscc 9 年之前
父節點
當前提交
b337f4f671
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 6 1
      Makefile
  2. 1 1
      README.md

+ 6 - 1
Makefile

@@ -2,7 +2,7 @@
 SHELL = /bin/bash
 all: checks
 
-checks: missinglicenselanguage
+checks: missinglicenselanguage nofullstop
 
 noexternallink:
 	@echo "Lines with no source/demo/other link:"
@@ -12,6 +12,11 @@ missinglicenselanguage:
 	@echo "Lines 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:"
+	-@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] `'
+
 contrib:
 	@git shortlog -sne
 

+ 1 - 1
README.md

@@ -900,7 +900,7 @@ See also [Documentation Generators](#documentation-generators), [Wikimatrix](htt
  * Non-[Free](https://en.wikipedia.org/wiki/Free_software) software must be marked `⊘ Proprietary` next to the title, and added to [non-free.md](non-free.md)
  * Software with no development activity for 6-12 months may be removed from the list.
  * Check current [issues](https://github.com/Kickball/awesome-selfhosted/issues) and [Pull Requests](https://github.com/Kickball/awesome-selfhosted/pulls), as well as [closed issues/PRs](https://github.com/Kickball/awesome-selfhosted/pulls?utf8=%E2%9C%93&q=is%3Aclosed+)
- * The list of contributors can be updated with `make contrib`. Several checks are available: `make noexternallink; make missinglicenselanguage`
+ * The list of contributors can be updated with `make contrib`. Several checks are available: `make noexternallink; make missinglicenselanguage; make nofullstop`
 
 
 ## License