[llvm] r227744 - Fix some bashims. More information on https://wiki.ubuntu.com/DashAsBinSh. Reported initially on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772302 & https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772301

Sylvestre Ledru sylvestre at debian.org
Sun Feb 1 06:55:43 PST 2015


Author: sylvestre
Date: Sun Feb  1 08:55:43 2015
New Revision: 227744

URL: http://llvm.org/viewvc/llvm-project?rev=227744&view=rev
Log:
Fix some bashims. More information on https://wiki.ubuntu.com/DashAsBinSh. Reported initially on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772302 & https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772301

Modified:
    llvm/trunk/autoconf/configure.ac
    llvm/trunk/configure
    llvm/trunk/utils/lit/utils/check-coverage

Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=227744&r1=227743&r2=227744&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Sun Feb  1 08:55:43 2015
@@ -1535,11 +1535,11 @@ AC_ARG_WITH(oprofile,
             AC_SEARCH_LIBS(bfd_init, bfd, [], [])
             AC_SEARCH_LIBS(op_open_agent, opagent, [], [
               echo "Error! You need to have libopagent around."
-              exit -1
+              exit 1
             ])
             AC_CHECK_HEADER([opagent.h], [], [
               echo "Error! You need to have opagent.h around."
-              exit -1
+              exit 1
               ])
           fi ;;
         *)

Modified: llvm/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=227744&r1=227743&r2=227744&view=diff
==============================================================================
--- llvm/trunk/configure (original)
+++ llvm/trunk/configure Sun Feb  1 08:55:43 2015
@@ -9910,7 +9910,7 @@ if test "$ac_res" != no; then
 else
 
               echo "Error! You need to have libopagent around."
-              exit -1
+              exit 1
 
 fi
 
@@ -10073,7 +10073,7 @@ if test $ac_cv_header_opagent_h = yes; t
 else
 
               echo "Error! You need to have opagent.h around."
-              exit -1
+              exit 1
 
 fi
 

Modified: llvm/trunk/utils/lit/utils/check-coverage
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/utils/check-coverage?rev=227744&r1=227743&r2=227744&view=diff
==============================================================================
--- llvm/trunk/utils/lit/utils/check-coverage (original)
+++ llvm/trunk/utils/lit/utils/check-coverage Sun Feb  1 08:55:43 2015
@@ -23,7 +23,7 @@ fi
 # sitecustomize.
 if ! python -c \
       'import sitecustomize, sys; sys.exit("coverage" not in dir(sitecustomize))' \
-      &> /dev/null; then
+      >/dev/null 2>&1; then
     printf 1>&2 "error: active python does not appear to enable coverage in its 'sitecustomize.py'\n"
     exit 1
 fi





More information about the llvm-commits mailing list