diff options
author | Jim Meyering <jim@meyering.net> | 2006-11-27 14:38:35 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-11-27 14:38:35 +0100 |
commit | 97136cb93fa4f54e37ba34c9cdd14655243155a9 (patch) | |
tree | ae493aabd62217301b0c695fdf0ee353787d5908 /Makefile.maint | |
parent | 9b06af3367500dfe09067b047381e788969059cd (diff) | |
download | coreutils-97136cb93fa4f54e37ba34c9cdd14655243155a9.tar.xz |
* Makefile.maint (patch-check): Rewrite to diagnose failure.
* src/c99-to-c89.diff: Adjust shred.c offsets.
Diffstat (limited to 'Makefile.maint')
-rw-r--r-- | Makefile.maint | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.maint b/Makefile.maint index 821a53c68..f4e961f9f 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -330,15 +330,16 @@ patch-check: cp -a src src-c89 (cd src-c89; patch -V never --fuzz=0) < src/c99-to-c89.diff \ > $@.1 2>&1 - grep -v '^patching file ' $@.1 > $@.2 || : if test "$${REGEN_PATCH+set}" = set; then \ diff -upr src src-c89 > new-diff || : ; fi - fail=0; test -s $@.2 && fail=1 || : ; \ - rm -f src-c89/*.o || fail=1; \ + grep -v '^patching file ' $@.1 > $@.2 || : + msg=ok; test -s $@.2 && msg='fuzzy patch' || : ; \ + rm -f src-c89/*.o || msg='rm failed'; \ $(MAKE) -C src-c89 CFLAGS='-Wdeclaration-after-statement -Werror' \ - || fail=1; \ - rm -rf src-c89 $@.1 $@.2; \ - test $$fail = 0 + || msg='compile failure with extra options'; \ + rm -rf src-c89 $@.1 $@.2; \ + test $$msg = ok && : || echo "$$msg" 1>&2; \ + test $$msg = ok # Ensure that date's --help output stays in sync with the info # documentation for GNU strftime. The only exception is %N, |