(gzip_rsyncable): Don't fail if gzip sends --help to stdout.
authorSimon Josefsson <simon@josefsson.org>
Mon, 22 Oct 2007 06:02:39 +0000 (08:02 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 22 Oct 2007 06:02:39 +0000 (08:02 +0200)
Reported by sms@antinode.org (Steven M. Schweda).

ChangeLog
build-aux/maint.mk

index a14048c3cfea69996cfcc44bbdffb7ca6352c77e..aefe61d5bed45abb7cac66dff00d04baebdec2c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-22  Simon Josefsson  <simon@josefsson.org>
+
+       * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
+       --help to stdout.  Reported by sms@antinode.org (Steven
+       M. Schweda).
+
 2007-10-22  Simon Josefsson  <simon@josefsson.org>
 
        * users.txt: Fix link to libksba.
index a7a5a28f870cb5372307b09c0bf883df154f57aa..662b37174f2fa2e79932c621beeec830e17ae3d3 100644 (file)
@@ -30,7 +30,7 @@ C_SOURCES += $(C_SOURCES_ADD)
 # Do not save the original name or timestamp in the .tar.gz file.
 # Use --rsyncable if available.
 gzip_rsyncable := \
-  $(shell gzip --help|grep rsyncable >/dev/null && echo --rsyncable)
+  $(shell gzip --help 2>/dev/null|grep rsyncable >/dev/null && echo --rsyncable)
 GZIP_ENV = '--no-name --best $(gzip_rsyncable)'
 
 # Prevent programs like 'sort' from considering distinct strings to be equal.