[llvm-commits] [llvm] r106048 - /llvm/trunk/Makefile.rules

Chris Lattner sabre at nondot.org
Tue Jun 15 14:35:22 PDT 2010


Author: lattner
Date: Tue Jun 15 16:35:22 2010
New Revision: 106048

URL: http://llvm.org/viewvc/llvm-project?rev=106048&view=rev
Log:
fix PR7380: use 'test' instead of shell builtins.  This improves
portability to Solaris 10, which apparently doesn't support
[ foo -ot bar ]

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=106048&r1=106047&r2=106048&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Tue Jun 15 16:35:22 2010
@@ -808,7 +808,7 @@
 $(RecursiveTargets)::
 	$(Verb) for dir in $(DIRS); do \
 	  if ([ ! -f $$dir/Makefile ] || \
-	      [ $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ]); then \
+	      test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
 	    $(MKDIR) $$dir; \
 	    $(CP) $(PROJ_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
 	  fi; \
@@ -831,7 +831,7 @@
 $(RecursiveTargets)::
 	$(Verb) for dir in $(EXPERIMENTAL_DIRS); do \
 	  if ([ ! -f $$dir/Makefile ] || \
-	      [ $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ]); then \
+	      test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
 	    $(MKDIR) $$dir; \
 	    $(CP) $(PROJ_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
 	  fi; \
@@ -866,8 +866,8 @@
 
 $(ParallelTargets) :
 	$(Verb) if ([ ! -f $(@D)/Makefile ] || \
-	            [ $(@D)/Makefile -ot \
-                      $(PROJ_SRC_DIR)/$(@D)/Makefile ]); then \
+	            test $(@D)/Makefile -ot \
+                      $(PROJ_SRC_DIR)/$(@D)/Makefile ); then \
 	  $(MKDIR) $(@D); \
 	  $(CP) $(PROJ_SRC_DIR)/$(@D)/Makefile $(@D)/Makefile; \
 	fi; \
@@ -887,7 +887,7 @@
 	$(Verb) for dir in $(OPTIONAL_DIRS); do \
 	  if [ -d $(PROJ_SRC_DIR)/$$dir ]; then\
 	    if ([ ! -f $$dir/Makefile ] || \
-	        [ $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ]); then \
+	        test $$dir/Makefile -ot $(PROJ_SRC_DIR)/$$dir/Makefile ); then \
 	      $(MKDIR) $$dir; \
 	      $(CP) $(PROJ_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
 	    fi; \





More information about the llvm-commits mailing list