diff options
author | Bruce Beare <brucex.j.beare@intel.com> | 2010-06-11 12:05:57 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-07-08 16:36:05 -0700 |
commit | 69ef5ce4f0e0adfac1ff12f8cc3dde65fab36486 (patch) | |
tree | 21957acd456f6eb608b0f22fa388fac980ee9b13 /tools/mktarball.sh | |
parent | 3f03d114f33bf842dceb67a00c730b821ae4ac72 (diff) | |
download | build-69ef5ce4f0e0adfac1ff12f8cc3dde65fab36486.zip build-69ef5ce4f0e0adfac1ff12f8cc3dde65fab36486.tar.gz build-69ef5ce4f0e0adfac1ff12f8cc3dde65fab36486.tar.bz2 |
Create systemtarball either with bz2 or gz
Change-Id: I64e93872942e8dcad4a894a906be7912bb6da308
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
Diffstat (limited to 'tools/mktarball.sh')
-rwxr-xr-x | tools/mktarball.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/mktarball.sh b/tools/mktarball.sh index ea1a8ed..3e32006 100755 --- a/tools/mktarball.sh +++ b/tools/mktarball.sh @@ -39,7 +39,14 @@ for f in ${subdirs} ${files} ; do done if [ $? -eq 0 ] ; then - bzip2 -c ${target_tar} > ${target_tarball} + case "${target_tarball}" in + *.bz2 ) + bzip2 -c ${target_tar} > ${target_tarball} + ;; + *.gz ) + gzip -c ${target_tar} > ${target_tarball} + ;; + esac success=$? [ $success -eq 0 ] || rm -f ${target_tarball} rm -f ${target_tar} |