r192680 - docs: Remove incompatibility with Solaris shell

David Majnemer david.majnemer at gmail.com
Tue Oct 15 01:33:43 PDT 2013


Author: majnemer
Date: Tue Oct 15 03:33:43 2013
New Revision: 192680

URL: http://llvm.org/viewvc/llvm-project?rev=192680&view=rev
Log:
docs: Remove incompatibility with Solaris shell

There doesn't seem to be a need in checking if a directory exists if we
will just rm -rf it once we affirm that it does.  Instead, just blindly
try to delete it.

This fixes PR17541.

Modified:
    cfe/trunk/docs/Makefile

Modified: cfe/trunk/docs/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/Makefile?rev=192680&r1=192679&r2=192680&view=diff
==============================================================================
--- cfe/trunk/docs/Makefile (original)
+++ cfe/trunk/docs/Makefile Tue Oct 15 03:33:43 2013
@@ -78,9 +78,7 @@ doxygen: regendoc $(PROJ_OBJ_DIR)/doxyge
 
 regendoc:
 	$(Echo) Building doxygen documentation
-	$(Verb) if test -e $(PROJ_OBJ_DIR)/doxygen ; then \
-	  $(RM) -rf $(PROJ_OBJ_DIR)/doxygen ; \
-	fi
+	$(Verb) $(RM) -rf $(PROJ_OBJ_DIR)/doxygen
 	$(Verb) $(DOXYGEN) $(PROJ_OBJ_DIR)/doxygen.cfg
 
 $(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFILES) $(PROJ_OBJ_DIR)/doxygen.cfg





More information about the cfe-commits mailing list