summaryrefslogtreecommitdiff
path: root/helpers/lh_source_debian-live
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-22 23:32:30 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:33 +0100
commitae58d0f7af61b5bae65ec0532ee316dd9fb5e4ea (patch)
tree42be46bd4bc1033ebfa535fc10d8f51e1a20f23c /helpers/lh_source_debian-live
parent917c2c094fd888d50bdc7844e6db6197d2a753cf (diff)
downloadlive-build-ae58d0f7af61b5bae65ec0532ee316dd9fb5e4ea.zip
live-build-ae58d0f7af61b5bae65ec0532ee316dd9fb5e4ea.tar.gz
Producing rsyncable tarballs where possible.
Diffstat (limited to 'helpers/lh_source_debian-live')
-rwxr-xr-xhelpers/lh_source_debian-live10
1 files changed, 9 insertions, 1 deletions
diff --git a/helpers/lh_source_debian-live b/helpers/lh_source_debian-live
index 1511468..c82ca29 100755
--- a/helpers/lh_source_debian-live
+++ b/helpers/lh_source_debian-live
@@ -59,7 +59,15 @@ cp -a config source/debian-live
# Create tarball
cd source
-tar cfz debian-live-config_$(date +%Y%m%d.%s).tar.gz debian-live
+
+if gzip --help | grep -q '\-\-rsyncable'
+then
+ tar cf debian-live-config_$(date +%Y%m%d.%s).tar debian-live
+ gzip --rsyncable --best debian-live-config_$(date +%Y%m%d.%s).tar
+else
+ tar cfz debian-live-config_$(date +%Y%m%d.%s).tar.gz debian-live
+fi
+
cd "${OLDPWD}"
rm -rf source/debian-live/config