]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(strftime-check): Add `N'.
authorJim Meyering <jim@meyering.net>
Fri, 1 Mar 2002 23:35:58 +0000 (23:35 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 1 Mar 2002 23:35:58 +0000 (23:35 +0000)
Makefile.maint

index 864a50e9566bd6b4ab596d1d9f2c581a60475b31..46cdd24e206045c583cee80c8fec29b529a0721c 100644 (file)
@@ -69,14 +69,16 @@ header-check:
        fi
 
 # Ensure that date's --help output stays in sync with the info
-# documentation for GNU strftime.
+# documentation for GNU strftime.  The only exception is %N,
+# which date accepts but GNU strftime does not.
 extract_char = sed 's/^[^%][^%]*%\(.\).*/\1/'
 strftime-check:
        if test -f $(srcdir)/src/date.c; then                           \
          grep '^  %.  ' $(srcdir)/src/date.c | sort                    \
            | $(extract_char) > $@-src;                                 \
-         info libc date calendar format | sort | grep '^    `%.'\'     \
-           | $(extract_char) > $@-info;                                \
+         { echo N;                                                     \
+           info libc date calendar format | grep '^    `%.'\'          \
+             | $(extract_char); } | sort > $@-info;                    \
          diff -u $@-src $@-info || exit 1;                             \
          rm -f $@-src $@-info;                                         \
        fi