diff options
Diffstat (limited to 'helpers/lh_source_tar')
-rwxr-xr-x | helpers/lh_source_tar | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/helpers/lh_source_tar b/helpers/lh_source_tar index ecd04ee97..4e00db636 100755 --- a/helpers/lh_source_tar +++ b/helpers/lh_source_tar @@ -60,7 +60,13 @@ then fi # Create tarball -tar cfz source.tar.gz source +if gzip --help | grep -q '\-\-rsyncable' +then + tar cf source.tar source + gzip --rsyncable --best source.tar +else + tar cfz source.tar.gz source +fi # Creating stage file Create_stagefile .stage/source_tar |