maint: use more sc_-prefixed names
authorJim Meyering <meyering@redhat.com>
Fri, 26 Dec 2008 14:53:03 +0000 (15:53 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 1 Jan 2009 01:15:07 +0000 (02:15 +0100)
* maint.mk (sc_po_check): Renamed from po-check.
(sc_author_mark_check): Renamed from author_mark_check.
(sc_copyright_check): Renamed from copyright-check.
(sc_makefile_path_separator_check): Renamed from
makefile_path_separator_check.
(local-checks-available): Remove the old names.
* Makefile.am (EXTRA_DIST): Reflect the renaming: .x-sc_po_check
* .x-po-check: Rename to...
* .x-sc_po_check: ...new file.

.x-po-check [deleted file]
.x-sc_po_check [new file with mode: 0644]
Makefile.am
maint.mk

diff --git a/.x-po-check b/.x-po-check
deleted file mode 100644 (file)
index 202ec8e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-ChangeLog(-[0-9]+)?$
-^old/
-^src/c99-to-c98\.diff$
-^gl/.*
diff --git a/.x-sc_po_check b/.x-sc_po_check
new file mode 100644 (file)
index 0000000..ffa8d97
--- /dev/null
@@ -0,0 +1 @@
+^gl/
index 1b2786d..3964888 100644 (file)
@@ -20,10 +20,10 @@ EXTRA_DIST = cfg.mk maint.mk \
   .prev-version THANKS-to-translators THANKStt.in \
   .version \
   .vg-suppressions \
-  .x-po-check \
   .x-sc_GPL_version \
   .x-sc_file_system \
   .x-sc_obsolete_symbols \
+  .x-sc_po_check \
   .x-sc_program_name \
   .x-sc_prohibit_atoi_atof \
   .x-sc_prohibit_stat_st_blocks \
index 9ae8cda..83b7e1f 100644 (file)
--- a/maint.mk
+++ b/maint.mk
@@ -74,9 +74,7 @@ syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' \
 .PHONY: $(syntax-check-rules)
 
 local-checks-available = \
-  po-check copyright-check author_mark_check \
   patch-check $(syntax-check-rules) \
-  makefile_path_separator_check \
   makefile-check check-AUTHORS
 .PHONY: $(local-checks-available)
 
@@ -485,7 +483,7 @@ apply the above patch\n'
 
 # Verify that all source files using _() are listed in po/POTFILES.in.
 po_file = po/POTFILES.in
-po-check:
+sc_po_check:
        @if test -f $(po_file); then                                    \
          grep -E -v '^(#|$$)' $(po_file)                               \
            | grep -v '^src/false\.c$$' | sort > $@-1;                  \
@@ -512,7 +510,7 @@ po-check:
 # In a definition of #define AUTHORS "... and ..." where the RHS contains
 # the English word `and', the string must be marked with `N_ (...)' so that
 # gettext recognizes it as a string requiring translation.
-author_mark_check:
+sc_author_mark_check:
        @grep -n '^# *define AUTHORS "[^"]* and ' src/*.c |grep -v ' N_ (' && \
          { echo '$(ME): enclose the above strings in N_ (...)' 1>&2; \
            exit 1; } || :
@@ -524,7 +522,7 @@ author_mark_check:
 # and there probably aren't many projects with so many Makefile.am files
 # that we'd have to worry about limits on command line length.
 msg = '$(ME): Do not use `:'\'' above; use @PATH_SEPARATOR@ instead'
-makefile_path_separator_check:
+sc_makefile_path_separator_check:
        @grep -n 'PATH=.*:' `find $(srcdir) -name Makefile.am` \
          && { echo $(msg) 1>&2; exit 1; } || :
 
@@ -545,7 +543,7 @@ sample-test = tests/sample-test
 texi = doc/$(PACKAGE).texi
 # Make sure that the copyright date in $(v_etc_file) is up to date.
 # Do the same for the $(sample-test) and the main doc/.texi file.
-copyright-check:
+sc_copyright_check:
        @if test -f $(v_etc_file); then \
          grep 'enum { COPYRIGHT_YEAR = '$$(date +%Y)' };' $(v_etc_file) \
            >/dev/null \