From 0c65638b0fe521a47e72f318edfb12c5b3b850f5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 26 Dec 2008 12:00:18 +0100 Subject: maint: ensure dd's computation of O_FULLBLOCK uses all O_ symbol names * src/dd.c (O_FULLBLOCK): Use a more uniform initializer, that makes it easier to extract all O_ symbol names. * maint.mk (syntax-check-rules): Also search for sc_ rules in cfg.mk. (sc_root_tests): Ensure that this rule sets $diff. * cfg.mk (sc_dd_O_FLAGS): New rule. --- maint.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maint.mk') diff --git a/maint.mk b/maint.mk index 7a9649e10..82a526ce5 100644 --- a/maint.mk +++ b/maint.mk @@ -70,7 +70,7 @@ export LC_ALL = C # Collect the names of rules starting with `sc_'. syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' \ - $(srcdir)/$(ME)) + $(srcdir)/$(ME) $(srcdir)/cfg.mk) .PHONY: $(syntax-check-rules) local-checks-available = \ @@ -318,7 +318,7 @@ sc_root_tests: $(srcdir)/tests/Makefile.am \ | sed 's/^ *//;/^root_tests =/d' \ | tr -s '\012\\' ' ' | fmt -1 | sort > $$t2; \ - diff -u $$t1 $$t2 || diff=1; \ + diff -u $$t1 $$t2 || diff=1 || diff=; \ rm -f $$t1 $$t2; \ test "$$diff" \ && { echo 'tests/Makefile.am: missing check-root action'>&2; \ -- cgit v1.2.3-70-g09d2