GNUmakefile: Add a fallback for `hg files` not working in linter target
authorKim Alvefur <zash@zash.se>
Sun, 20 May 2018 02:40:08 +0200
changeset 8810 bf91de890107
parent 8809 6529f762b819
child 8811 40a7135eb6ac
GNUmakefile: Add a fallback for `hg files` not working in linter target
GNUmakefile
--- a/GNUmakefile	Sat May 19 00:30:34 2018 +0200
+++ b/GNUmakefile	Sun May 20 02:40:08 2018 +0200
@@ -77,7 +77,7 @@
 	@echo "To inspect individual files run: luacov-console -l FILENAME"
 
 lint:
-	luacheck -q $$(hg files -I '**.lua') prosody prosodyctl
+	luacheck -q $$(hg files -I '**.lua' || echo core net util plugins) prosody prosodyctl
 	@echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
 
 util/%.so: