Index: utils/release/test-release.sh
===================================================================
--- utils/release/test-release.sh	(revision 242641)
+++ utils/release/test-release.sh	(working copy)
@@ -12,7 +12,8 @@
 #
 #===------------------------------------------------------------------------===#
 
-if [ `uname -s` = "FreeBSD" ]; then
+System=`uname -s`
+if [ $System = "FreeBSD" ]; then
     MAKE=gmake
 else
     MAKE=make
@@ -54,8 +55,9 @@ function usage() {
     echo " -use-autoconf        Use autoconf instead of cmake"
 }
 
-if [ `uname -s` = "Darwin" ]; then
+if [ $System = "Darwin" -o $System = "FreeBSD" ]; then
   # compiler-rt doesn't yet build with CMake on Darwin.
+  # libcxxabi doesn't yet build with CMake on FreeBSD.
   use_autoconf="yes"
 fi
 
@@ -176,7 +178,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'
@@ -313,6 +315,7 @@ function build_llvmCore() {
     ${MAKE} install \
         DESTDIR="${DestDir}" \
         2>&1 | tee $LogDir/llvm.install-Phase$Phase-$Flavor.log
+    echo "# Installed llvm $Release-$RC $Flavor"
     cd $BuildDir
 }
 
@@ -337,13 +340,13 @@ 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"
   for Candidate in `find $InstallPath/{bin,lib} -type f`; do
     if file $Candidate | grep ELF | egrep 'executable|shared object' > /dev/null 2>&1 ; then
-      rpath=`objdump -x $Candidate | grep 'RPATH' | sed -e's/^ *RPATH *//'`
+      rpath=`objdump -x $Candidate | sed -ne'/RPATH/{s/^ *RPATH *//;p;}'`
       if [ -n "$rpath" ]; then
         newrpath=`echo $rpath | sed -e's/.*\(\$ORIGIN[^:]*\).*/\1/'`
         chrpath -r $newrpath $Candidate 2>&1 > /dev/null 2>&1
