diff options
author | Dimitry Andric <dimitry@andric.com> | 2016-01-21 22:07:17 +0000 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2016-01-21 22:07:17 +0000 |
commit | ca0516014cf425e24599d4dabaf7b9a75966251c (patch) | |
tree | 334fd7fb75c788358148e7df1b346be8a0edba9c /llvm/utils | |
parent | 3db630b5e7863015a6e9c39bb62fcd218059af9f (diff) | |
download | bcm5719-llvm-ca0516014cf425e24599d4dabaf7b9a75966251c.tar.gz bcm5719-llvm-ca0516014cf425e24599d4dabaf7b9a75966251c.zip |
In test-release.sh, only run `uname -s` once. NFC.
llvm-svn: 258439
Diffstat (limited to 'llvm/utils')
-rwxr-xr-x | llvm/utils/release/test-release.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh index 9f7fb051baf..8d4348304da 100755 --- a/llvm/utils/release/test-release.sh +++ b/llvm/utils/release/test-release.sh @@ -12,7 +12,8 @@ # #===------------------------------------------------------------------------===# -if [ `uname -s` = "FreeBSD" ]; then +System=`uname -s` +if [ "$System" = "FreeBSD" ]; then MAKE=gmake else MAKE=make @@ -244,7 +245,7 @@ function check_program_exists() { fi } -if [ `uname -s` != "Darwin" ]; then +if [ "$System" != "Darwin" ]; then check_program_exists 'chrpath' check_program_exists 'file' check_program_exists 'objdump' @@ -406,7 +407,7 @@ function test_llvmCore() { # Clean RPATH. Libtool adds the build directory to the search path, which is # not necessary --- and even harmful --- for the binary packages we release. function clean_RPATH() { - if [ `uname -s` = "Darwin" ]; then + if [ "$System" = "Darwin" ]; then return fi local InstallPath="$1" |