[Pkg-wmaker-commits] [wmbiff] 26/84: verify that config.h is included in each .c file
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:01:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_4_10
in repository wmbiff.
commit 0615ba521faaa0327a3ff6ca32d1eeead42710db
Author: bluehal <bluehal>
Date: Fri Jun 21 04:28:06 2002 +0000
verify that config.h is included in each .c file
---
wmbiff/Makefile.am | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/wmbiff/Makefile.am b/wmbiff/Makefile.am
index 6f598ed..709a869 100644
--- a/wmbiff/Makefile.am
+++ b/wmbiff/Makefile.am
@@ -34,7 +34,7 @@ MAINTAINERCLEANFILES = Makefile.in
indent:
indent -npro -kr -i4 -ts4 $(wmbiff_SOURCES) || true
-dist-hook-local: indent
+dist-hook-local: indent config-h-check
distclean-local:
-rm -f wmbiff-master-contrast.xpm wmbiff-master.xpm
@@ -47,3 +47,8 @@ wmbiff-master-contrast.xpm: wmbiff-master-led.xpm Makefile
sed -e 's/#\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}/#\1\2\3/'\
> $@ || rm $@
+# fail if there's a .c file that doesn't include config.h
+config-h-check:
+ ls *.c | sort > cfiles
+ grep -l config.h *.c | sort | diff - cfiles
+ rm cfiles
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list