From ae58d0f7af61b5bae65ec0532ee316dd9fb5e4ea Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 22 Apr 2008 23:32:30 +0200 Subject: Producing rsyncable tarballs where possible. --- helpers/lh_binary_net | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'helpers/lh_binary_net') diff --git a/helpers/lh_binary_net b/helpers/lh_binary_net index f97d4c3b3..3b5076eda 100755 --- a/helpers/lh_binary_net +++ b/helpers/lh_binary_net @@ -78,7 +78,14 @@ case "${LH_NET_TARBALL}" in ;; gzip) - tar cfz binary-net.tar.gz "$(basename ${OLDPWD})/${ROOT_DIR}" "$(basename ${OLDPWD})/tftpboot" + if gzip --help | grep -q "\-\-rsyncable" + then + tar cf binary-net.tar "$(basename ${OLDPWD})/${ROOT_DIR}" "$(basename ${OLDPWD})/tftpboot" + gzip --rsyncable --best binary-net.tar + else + tar cfz binary-net.tar.gz "$(basename ${OLDPWD})/${ROOT_DIR}" "$(basename ${OLDPWD})/tftpboot" + fi + mv binary-net.tar.gz "${OLDPWD}" ;; -- cgit v1.2.3