summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_tar
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_binary_tar')
-rwxr-xr-xhelpers/lh_binary_tar8
1 files changed, 7 insertions, 1 deletions
diff --git a/helpers/lh_binary_tar b/helpers/lh_binary_tar
index 85ff064ab..7560bce15 100755
--- a/helpers/lh_binary_tar
+++ b/helpers/lh_binary_tar
@@ -50,7 +50,13 @@ Create_lockfile .lock
# Remove old binary
rm -f binary.tar.gz
-tar cfz binary-tar.tar.gz binary
+if gzip --help | grep -q '\-\-rsyncable'
+then
+ tar cf binary-tar.tar binary
+ gzip --rsyncable --best binary-tar.tar
+else
+ tar cfz binary-tar.tar.gz binary
+fi
# Creating stage file
Create_stagefile .stage/binary_tar