summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-05-07 17:46:57 +0000
committerJim Meyering <jim@meyering.net>2006-05-07 17:46:57 +0000
commitd4d3446babc8032595dd52beff7c3d814c0dd35e (patch)
treea16acb56bae80f8155b6f7f07f2eb6cfbacda128
parent6af864de6734fec4c7c90fa4709026ad7e563788 (diff)
downloadcoreutils-d4d3446babc8032595dd52beff7c3d814c0dd35e.tar.xz
(patch-check): Correct reversed sense of `test -s' test.
Work around the fact that patch always outputs `patching file ...'.
-rw-r--r--Makefile.maint7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 5837ff8d5..f1fece4eb 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -294,8 +294,11 @@ sc_useless_cpp_parens:
# have to copy all of src/ before running patch.
patch-check:
cp src/remove.c tmp-remove.c
- patch -V never --fuzz=0 tmp-remove.c src/c99-to-c89.diff
- rm -f tmp-remove.c
+ patch -V never --fuzz=0 tmp-remove.c src/c99-to-c89.diff \
+ > $@.1 2>&1
+ sed -n '2p' $@.1 > $@.2
+ test -s $@.2 && exit 1 || :
+ rm -f tmp-remove.c $@.1 $@.2
# Ensure that date's --help output stays in sync with the info
# documentation for GNU strftime. The only exception is %N,