Skip to content

Commit

Permalink
In test-release.sh, only run uname -s once. NFC.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258439 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
DimitryAndric committed Jan 21, 2016
1 parent 1a9ebde commit ad24fed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/release/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#
#===------------------------------------------------------------------------===#

if [ `uname -s` = "FreeBSD" ]; then
System=`uname -s`
if [ "$System" = "FreeBSD" ]; then
MAKE=gmake
else
MAKE=make
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ad24fed

Please sign in to comment.