aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-11-24 05:30:06 +0000
committerBill Wendling <isanbard@gmail.com>2013-11-24 05:30:06 +0000
commitd49c8fca79093f3eaaae3ee03ada65ef258f80b8 (patch)
treecdaf34a1e933d60959d57710bda3cdddd6b68b28 /utils
parent0162226db8b99306d598d7b790be7cc938bb689e (diff)
downloadexternal_llvm-d49c8fca79093f3eaaae3ee03ada65ef258f80b8.zip
external_llvm-d49c8fca79093f3eaaae3ee03ada65ef258f80b8.tar.gz
external_llvm-d49c8fca79093f3eaaae3ee03ada65ef258f80b8.tar.bz2
Merging r195567:
------------------------------------------------------------------------ r195567 | void | 2013-11-23 21:29:35 -0800 (Sat, 23 Nov 2013) | 1 line Default to a better compression algorithm. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/release/test-release.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/utils/release/test-release.sh b/utils/release/test-release.sh
index cdb0b60..91dac4c 100755
--- a/utils/release/test-release.sh
+++ b/utils/release/test-release.sh
@@ -27,6 +27,7 @@ Release=""
Release_no_dot=""
RC=""
Triple=""
+use_gzip="no"
do_checkout="yes"
do_ada="no"
do_clang="yes"
@@ -58,6 +59,7 @@ function usage() {
echo " -test-debug Test the debug build. [default: no]"
echo " -test-asserts Test with asserts on. [default: no]"
echo " -no-compare-files Don't test that phase 2 and 3 files are identical."
+ echo " -use-gzip Use gzip instead of xz."
}
while [ $# -gt 0 ]; do
@@ -119,6 +121,9 @@ while [ $# -gt 0 ]; do
-no-compare-files | --no-compare-files )
do_compare="no"
;;
+ -use-gzip | --use-gzip )
+ use_gzip="yes"
+ ;;
-help | --help | -h | --h | -\? )
usage
exit 0
@@ -382,7 +387,11 @@ function package_release() {
cwd=`pwd`
cd $BuildDir/Phase3/Release
mv llvmCore-$Release-$RC.install $Package
- tar cfz $BuildDir/$Package.tar.gz $Package
+ if [ "$use_gzip" = "yes" ]; then
+ tar cfz $BuildDir/$Package.tar.gz $Package
+ else
+ tar cfJ $BuildDir/$Package.tar.xz $Package
+ fi
mv $Package llvmCore-$Release-$RC.install
cd $cwd
}
@@ -588,6 +597,10 @@ set +e
# Woo hoo!
echo "### Testing Finished ###"
-echo "### Package: $Package.tar.gz"
+if [ "$use_gzip" = "yes" ]; then
+ echo "### Package: $Package.tar.gz"
+else
+ echo "### Package: $Package.tar.xz"
+fi
echo "### Logs: $LogDir"
exit 0