summaryrefslogtreecommitdiffstats
path: root/tools/mktarball.sh
diff options
context:
space:
mode:
authorBruce Beare <brucex.j.beare@intel.com>2010-06-11 12:05:57 -0700
committerJean-Baptiste Queru <jbq@google.com>2010-07-08 16:36:05 -0700
commit69ef5ce4f0e0adfac1ff12f8cc3dde65fab36486 (patch)
tree21957acd456f6eb608b0f22fa388fac980ee9b13 /tools/mktarball.sh
parent3f03d114f33bf842dceb67a00c730b821ae4ac72 (diff)
downloadbuild-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-xtools/mktarball.sh9
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}