summaryrefslogtreecommitdiff
path: root/helpers/lh_source_net
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_source_net')
-rwxr-xr-xhelpers/lh_source_net8
1 files changed, 7 insertions, 1 deletions
diff --git a/helpers/lh_source_net b/helpers/lh_source_net
index 192ea3b..77c7aed 100755
--- a/helpers/lh_source_net
+++ b/helpers/lh_source_net
@@ -59,7 +59,13 @@ then
fi
# Create tarball
-tar cfz source-net.tar.gz source
+if gzip --help | grep -q '\-\-rsyncable'
+then
+ tar cf source-net.tar source
+ gzip --rsyncable --best source-net.tar
+else
+ tar cfz source-net.tar.gz source
+fi
# Creating stage file
Create_stagefile .stage/source_net