From b102ed9ba6e529cc3dcf6be63c95d0f93d5499e0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 25 Mar 2009 22:49:09 +0100 Subject: [PATCH] tests: don't fail "make syntax-check" on cygwin * maint.mk (NEWS_hash): Remove trailing " -" or " *-". * cfg.mk (old_NEWS_hash): Regenerate, removing " -". Reported by Eric Blake. --- cfg.mk | 2 +- maint.mk | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cfg.mk b/cfg.mk index c6b6e9b1cb..29a03a77c5 100644 --- 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 diff --git a/maint.mk b/maint.mk index 54444367ac..554b90a121 100644 --- 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: -- 2.47.3