[quake] 04/10: Check scripts for missing substitutions

Simon McVittie smcv at debian.org
Mon Dec 28 00:24:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository quake.

commit c5a7b91639527195df02679316bb8291c922b0c0
Author: Simon McVittie <smcv at debian.org>
Date:   Sun Dec 27 22:41:33 2015 +0000

    Check scripts for missing substitutions
---
 Makefile | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 02d155b..48a4eff 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 
 layer_sizes = 16 22 32 48 256
 
-obj = \
+text = \
 	build/quake \
 	build/quake2 \
 	build/quake3 \
@@ -13,6 +13,10 @@ obj = \
 	build/quake3-server \
 	build/quake4-dedicated \
 	build/etqw-dedicated \
+	$(NULL)
+
+obj = \
+	$(text) \
 	build/24/quake.png \
 	build/24/quake-armagon.png \
 	build/24/quake-dissolution.png \
@@ -335,3 +339,15 @@ build/48/quake3.png: build/quake3.png Makefile
 build/48/quake3-teamarena.png: build/quake3-teamarena.png Makefile
 	install -d build/48
 	convert -resize 48x48 $< $@
+
+check:
+	set -e; \
+	failed=0; \
+	for x in $(text); do \
+		if grep -E "@[a-zA-Z]|[a-zA-Z]@" $$x; then \
+			echo "^ probably a missing substitution?"; \
+			failed=1; \
+		fi; \
+	done; exit $$failed
+
+.PHONY: check

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/quake.git



More information about the Pkg-games-commits mailing list