bug-grep
[Top][All Lists]
Advanced

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

[PATCH] maint: stop using .x-sc_* files to list syntax-check exemptions


From: Jim Meyering
Subject: [PATCH] maint: stop using .x-sc_* files to list syntax-check exemptions
Date: Sat, 19 Mar 2011 18:35:35 +0100

FYI, clean-up...

>From 7fd11db8f49eeecb0015e78aceadd921948c3cff Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 19 Mar 2011 17:53:32 +0100
Subject: [PATCH] maint: stop using .x-sc_* files to list syntax-check
 exemptions

Instead, use the new mechanism with which you merely use a
variable (derived from the rule name) defined in cfg.mk to an ERE
matching the exempted file names.
* gnulib: Update to latest, to get maint.mk that implements this.
* .x-sc_bindtextdomain: Remove file.
* .x-sc_prohibit_tab_based_indentation: Likewise.
* .x-sc_prohibit_xalloc_without_use: Likewise.
* .x-sc_space_tab: Likewise.
* cfg.mk: Define variables to exempt the same files.
---
 .x-sc_bindtextdomain                 |    1 -
 .x-sc_prohibit_tab_based_indentation |    4 ----
 .x-sc_prohibit_xalloc_without_use    |    1 -
 .x-sc_space_tab                      |    1 -
 cfg.mk                               |    6 ++++++
 gnulib                               |    2 +-
 6 files changed, 7 insertions(+), 8 deletions(-)
 delete mode 100644 .x-sc_bindtextdomain
 delete mode 100644 .x-sc_prohibit_tab_based_indentation
 delete mode 100644 .x-sc_prohibit_xalloc_without_use
 delete mode 100644 .x-sc_space_tab

diff --git a/.x-sc_bindtextdomain b/.x-sc_bindtextdomain
deleted file mode 100644
index 18a9a2c..0000000
--- a/.x-sc_bindtextdomain
+++ /dev/null
@@ -1 +0,0 @@
-tests/get-mb-cur-max.c
diff --git a/.x-sc_prohibit_tab_based_indentation 
b/.x-sc_prohibit_tab_based_indentation
deleted file mode 100644
index 2c46b77..0000000
--- a/.x-sc_prohibit_tab_based_indentation
+++ /dev/null
@@ -1,4 +0,0 @@
-(^|/)ChangeLog[^/]*$
-(^|/)(GNU)?[Mm]akefile[^/]*$
-\.(am|mk)$
-^gl/lib/.*\.c\.diff$
diff --git a/.x-sc_prohibit_xalloc_without_use 
b/.x-sc_prohibit_xalloc_without_use
deleted file mode 100644
index 6860c2b..0000000
--- a/.x-sc_prohibit_xalloc_without_use
+++ /dev/null
@@ -1 +0,0 @@
-^src/kwset\.c$
diff --git a/.x-sc_space_tab b/.x-sc_space_tab
deleted file mode 100644
index efa4369..0000000
--- a/.x-sc_space_tab
+++ /dev/null
@@ -1 +0,0 @@
-\.diff$
diff --git a/cfg.mk b/cfg.mk
index e5fb091..9b7b93d 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -57,3 +57,9 @@ sc_prohibit_emacs__indent_tabs_mode__setting:
 update-copyright-env = \
   UPDATE_COPYRIGHT_USE_INTERVALS=1 \
   UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
+
+exclude_file_name_regexp--sc_bindtextdomain = ^tests/get-mb-cur-max\.c$$
+exclude_file_name_regexp--sc_prohibit_xalloc_without_use = ^src/kwset\.c$$
+exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \
+  (Makefile|\.(am|mk)$$|^gl/lib/.*\.c\.diff$$)
+exclude_file_name_regexp--sc_space_tab = ^gl/lib/.*\.c\.diff$$
diff --git a/gnulib b/gnulib
index 00e7922..739321e 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 00e79225624b3a52d18c86eb8cfd87c8b604ca5a
+Subproject commit 739321ef60661c7b51a4c7a3fa23957a4d9dbbc3
--
1.7.4.1.499.g53f9



reply via email to

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