summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-02-10 17:47:16 +0000
committerJim Meyering <jim@meyering.net>2006-02-10 17:47:16 +0000
commit6ceaaa02dc6aa467b772cf9b52a9c70213b40c4f (patch)
tree41e6cc36072584f94941e8c3ff2b50993ab387b5
parent321f7724157b09474c3cd9f64fc9f06efe41b78f (diff)
downloadcoreutils-6ceaaa02dc6aa467b772cf9b52a9c70213b40c4f.tar.xz
Use gzip's --rsyncable option only if it's available.
(gzip_rsyncable): New variable. (GZIP_ENV): Use it.
-rw-r--r--Makefile.maint4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint
index e954a49ad..bca5dd9ee 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -24,7 +24,9 @@
ME := Makefile.maint
# Do not save the original name or timestamp in the .tar.gz file.
-GZIP_ENV = '--no-name --best --rsyncable'
+gzip_rsyncable := \
+ $(shell gzip --help|grep rsyncable >/dev/null && echo --rsyncable)
+GZIP_ENV = '--no-name --best $(gzip_rsyncable)'
CVS = cvs