[llvm] r258439 - In test-release.sh, only run `uname -s` once. NFC.

Dimitry Andric via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 14:07:18 PST 2016


Author: dim
Date: Thu Jan 21 16:07:17 2016
New Revision: 258439

URL: http://llvm.org/viewvc/llvm-project?rev=258439&view=rev
Log:
In test-release.sh, only run `uname -s` once. NFC.

Modified:
    llvm/trunk/utils/release/test-release.sh

Modified: llvm/trunk/utils/release/test-release.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/test-release.sh?rev=258439&r1=258438&r2=258439&view=diff
==============================================================================
--- llvm/trunk/utils/release/test-release.sh (original)
+++ llvm/trunk/utils/release/test-release.sh Thu Jan 21 16:07:17 2016
@@ -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"




More information about the llvm-commits mailing list