]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use gzip's --rsyncable option only if it's available.
authorJim Meyering <jim@meyering.net>
Fri, 10 Feb 2006 17:47:16 +0000 (17:47 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 10 Feb 2006 17:47:16 +0000 (17:47 +0000)
(gzip_rsyncable): New variable.
(GZIP_ENV): Use it.

Makefile.maint

index e954a49ad362a95f88c9377ea534c05853b753c1..bca5dd9ee6035aad7e21e31ef3008234c83fcb2f 100644 (file)
@@ -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