summaryrefslogtreecommitdiff
path: root/testsuite/Makefile.tests
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2009-01-28 08:54:04 +0100
committerPaolo Bonzini <bonzini@gnu.org>2009-01-28 08:54:04 +0100
commit5dd4f61f546970e84062aacd8af4a8b73ec34fc2 (patch)
treed4f8c1975123ab61f9c8d48977729070603a2fc1 /testsuite/Makefile.tests
parent70341ff4532e41f762371c1c93f0dcd8d232a80f (diff)
downloadsed-5dd4f61f546970e84062aacd8af4a8b73ec34fc2.tar.gz
do not print the bug report address when --help is printed and exit status != 0
2009-01-28 Paolo Bonzini <bonzini@gnu.org> * sed/sed.c (usage): Only print the bug report address for `sed --help'. (main): Print it for `sed --version' too. * testsuite/version.gin: Adapt. * testsuite/Makefile.tests: Refine help message test.
Diffstat (limited to 'testsuite/Makefile.tests')
-rw-r--r--testsuite/Makefile.tests3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/Makefile.tests b/testsuite/Makefile.tests
index 5e09b2b..17fe4dc 100644
--- a/testsuite/Makefile.tests
+++ b/testsuite/Makefile.tests
@@ -129,7 +129,8 @@ binary binary2 binary3::
#
help::
- $(SED) --help | $(SED) '1s/ [^ ]* / sed /' > $@.1out
+ $(SED) --help | grep E-mail > /dev/null 2>&1
+ $(SED) --help | $(SED) '1s/ [^ ]* / sed /; /^E-mail/,$$d' > $@.1out
$(SED) 2>&1 | $(SED) '1s/ [^ ]* / sed /' > $@.2out || :
$(CMP) $@.1out $@.2out
@$(RM) $@.1out $@.2out