diff options
author | Daniel Baumann <daniel@debian.org> | 2008-04-22 23:32:30 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:33 +0100 |
commit | ae58d0f7af61b5bae65ec0532ee316dd9fb5e4ea (patch) | |
tree | 42be46bd4bc1033ebfa535fc10d8f51e1a20f23c /helpers/lh_binary_tar | |
parent | 917c2c094fd888d50bdc7844e6db6197d2a753cf (diff) | |
download | vyos-live-build-ae58d0f7af61b5bae65ec0532ee316dd9fb5e4ea.tar.gz vyos-live-build-ae58d0f7af61b5bae65ec0532ee316dd9fb5e4ea.zip |
Producing rsyncable tarballs where possible.
Diffstat (limited to 'helpers/lh_binary_tar')
-rwxr-xr-x | helpers/lh_binary_tar | 8 |
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 |