(header_regexp): Add file-type.h.
authorJim Meyering <jim@meyering.net>
Fri, 9 Apr 2004 08:24:22 +0000 (08:24 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 9 Apr 2004 08:24:22 +0000 (08:24 +0000)
(sc_system_h_headers): Don't look for sys2.h anymore.

Makefile.maint

index 44a93f9..198584c 100644 (file)
@@ -154,7 +154,7 @@ sc_changelog:
 # with the strings from the two affected variables.
 dd_c = $(srcdir)/src/dd.c
 sc_dd_max_sym_length:
-       len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c); \
+       @len=$$( (sed -n '/conversions\[\] =$$/,/^};/p' $(dd_c);\
                 sed -n '/flags\[\] =$$/,/^};/p' $(dd_c) )      \
                |sed -n '/"/s/^[^"]*"\([^"]*\)".*/\1/p'         \
               | wc --max-line-length);                         \
@@ -173,6 +173,7 @@ header_regexp = \
   |errno\
   |exitfail\
   |fcntl\
+  |file-type\
   |inttypes\
   |limits\
   |locale\
@@ -190,12 +191,12 @@ h_re := $(shell echo '$(header_regexp)'|tr -d ' ')
 # Files in src/ should not include directly any of
 # the headers already included via system.h.
 # Get list of candidates with this:
-# grep -h include src/sys*.h|sed 's/.*include //'|sort -
+# grep -h include src/system.h|sed 's/.*include //'|sort -
 sc_system_h_headers:
-       @if test -f $(srcdir)/src/sys2.h; then                          \
+       @if test -f $(srcdir)/src/system.h; then                        \
          ( cvsu --list ) > /dev/null 2>&1 || : &&                      \
          grep -E '^# *include ["<]($(h_re))\.h[">]'                    \
-             $$(cvsu --list src | grep -Ev 'sys(2|tem)\.h$$')          \
+             $$(cvsu --list src | grep -Ev 'system\.h$$')              \
            && { echo '$(ME): the above are already included via system.h'\
                  1>&2; exit 1; } || :; \
        fi