]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Remove obsolete syntax-check rules.
authorBruno Haible <bruno@clisp.org>
Wed, 7 May 2025 08:17:09 +0000 (10:17 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 7 May 2025 08:17:09 +0000 (10:17 +0200)
* Makefile (sc_maint): Comment out.
(sc_cpp_indent_check, sc_check_sym_list): Remove targets.

ChangeLog
Makefile

index c1e5b652bf612ed0e051763e8a0c7866aacb99b7..738dce26d259cbf481d88782838bc4cdaf8d9df2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-07  Bruno Haible  <bruno@clisp.org>
+
+       Remove obsolete syntax-check rules.
+       * Makefile (sc_maint): Comment out.
+       (sc_cpp_indent_check, sc_check_sym_list): Remove targets.
+
 2025-05-07  Bruno Haible  <bruno@clisp.org>
 
        Fix "make sc_check_config_h_reminder" failure.
index 88f8cd304dee8ee160db895751fa3d71d7851fb8..b2d0cec897403add71bb34a012bf90a9d4424daf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,12 +73,13 @@ sc_prohibit_sc_omitted_at:
                 1>&2; exit 1; } || :                                   \
        else :; fi
 
-# Run all maint.mk syntax-check tests on gnulib's sources.
-sc_maint:
-       @rm -f maint.mk; ln -s top/maint.mk maint.mk
-       $(MAKE) -s srcdir=. gnulib_dir=. _build-aux=build-aux \
-               -f cfg.mk -f maint.mk syntax-check
-       rm -f maint.mk
+## Unmaintained. When removing this rule, also remove cfg.mk.
+## # Run all maint.mk syntax-check tests on gnulib's sources.
+## sc_maint:
+##     @rm -f maint.mk; ln -s top/maint.mk maint.mk
+##     $(MAKE) -s srcdir=. gnulib_dir=. _build-aux=build-aux \
+##             -f cfg.mk -f maint.mk syntax-check
+##     rm -f maint.mk
 
 sc_prohibit_AC_LIBOBJ_in_m4:
        url=https://lists.gnu.org/r/bug-gnulib/2011-06/msg00051.html; \
@@ -120,26 +121,6 @@ sc_pragma_columns:
                 exit 1; } || :;                                        \
        else :; fi
 
-# Verify that certain (for now, only Jim Meyering and Eric Blake's)
-# *.c files are consistently cpp indented.
-sc_cpp_indent_check:
-       @./gnulib-tool --extract-filelist \
-           $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \
-         | sort -u \
-         | grep '\.c$$' \
-         | grep -vE '/(stdio-(read|write)|getloadavg)\.c$$' \
-         | xargs cppi -c
-
-# Ensure that the list of symbols checked for by the
-# sc_prohibit_intprops_without_use rule match those in the actual file.
-# Extract the symbols from the .h file and compare with the list of
-# symbols extracted from the rule in maint.mk.
-sc_check_sym_list:
-       @i=lib/intprops.h; \
-       diff -u <(perl -lne '/^# *define ([A-Z]\w+)\(/ and print $$1' $$i|fmt) \
-         <(sed -n /^_intprops_name/,/^_intprops_syms_re/p top/maint.mk \
-           |sed '/^_/d;s/^  //;s/      *\\$$//')
-
 
 # List of C macros defined through AH_VERBATIM in m4/extern-inline.m4:
 config_h_MACROS1 = \