bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

maint.mk syntax-check


From: Simon Josefsson
Subject: maint.mk syntax-check
Date: Tue, 12 Jan 2010 15:58:11 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

It would be useful to have 'syntax-check' never check certain
files/directories.  This patch makes it possible to set VC_LIST_NEVER in
cfg.mk.  Objections to pushing?

/Simon

2010-01-12  Simon Josefsson  <address@hidden>

        * top/maint.mk (VC_LIST_EXCEPT): Filter list through VC_LIST_NEVER
        regexp too.

diff --git a/top/maint.mk b/top/maint.mk
index 3651543..c91b730 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -38,7 +38,9 @@ VC_LIST = $(build_aux)/vc-list-files -C $(srcdir)
 
 VC_LIST_EXCEPT = \
   $(VC_LIST) | if test -f $(srcdir)/.x-$@; then grep -vEf $(srcdir)/.x-$@; \
-              else grep -Ev "$${VC_LIST_EXCEPT_DEFAULT-ChangeLog}"; fi
+              else grep -Ev "$${VC_LIST_EXCEPT_DEFAULT-ChangeLog}"; fi \
+       | if test -n "$(VC_LIST_NEVER)"; then grep -Ev "$(VC_LIST_NEVER)"; \
+       else cat; fi
 
 ifeq ($(origin prev_version_file), undefined)
   prev_version_file = $(srcdir)/.prev-version




reply via email to

[Prev in Thread] Current Thread [Next in Thread]