]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: don't fail "make syntax-check" on cygwin
authorJim Meyering <meyering@redhat.com>
Wed, 25 Mar 2009 21:49:09 +0000 (22:49 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 25 Mar 2009 21:51:55 +0000 (22:51 +0100)
* maint.mk (NEWS_hash): Remove trailing " -" or " *-".
* cfg.mk (old_NEWS_hash): Regenerate, removing " -".
Reported by Eric Blake.

cfg.mk
maint.mk

diff --git a/cfg.mk b/cfg.mk
index c6b6e9b1cbbbf5895f93580c464491e5962b5fca..29a03a77c51c28283400516212da751a8fb4ae96 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -45,7 +45,7 @@ gnulib_dir = /gnulib
 # Now that we have better (check.mk) tests, make this the default.
 export VERBOSE = yes
 
-old_NEWS_hash = fa6cba1740b3f385520c1b54d90859ca  -
+old_NEWS_hash = fa6cba1740b3f385520c1b54d90859ca
 
 # Ensure that the list of O_ symbols used to compute O_FULLBLOCK is complete.
 dd = $(srcdir)/src/dd.c
index 54444367acd36985f5c2afbe9ee353611d7f4994..554b90a12146decccda15a4d1f33a4a104a19468 100644 (file)
--- a/maint.mk
+++ b/maint.mk
@@ -460,9 +460,12 @@ sc_const_long_option:
              echo 1>&2 '$(ME): add "const" to the above declarations'; \
              exit 1; } || :
 
-NEWS_hash = \
-  $$(sed -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
-     $(srcdir)/NEWS | grep -v '^Copyright .*Free Software' | md5sum -)
+NEWS_hash =                                                            \
+  $$(sed -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p'             \
+       $(srcdir)/NEWS                                                  \
+     | grep -v '^Copyright .*Free Software'                            \
+     | md5sum -                                                                \
+     | sed 's/ .*//')
 
 # Ensure that we don't accidentally insert an entry into an old NEWS block.
 sc_immutable_NEWS: