[m-rev.] for review: add -f option to rm when installing deep profiler

Ian MacLarty maclarty at csse.unimelb.edu.au
Fri Nov 17 11:57:11 AEDT 2006


For review by anyone.

Estimated hours taken: 0.2
Branches: main

deep_profiler/Mmakefile:
	Add the -f option to rm when installing and uninstalling the deep
	profiler cgi, otherwise the script stops and waits for a confirmation
	from the user.

Index: deep_profiler/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/deep_profiler/Mmakefile,v
retrieving revision 1.19
diff -u -r1.19 Mmakefile
--- deep_profiler/Mmakefile	19 Oct 2006 06:20:19 -0000	1.19
+++ deep_profiler/Mmakefile	17 Nov 2006 00:52:26 -0000
@@ -162,7 +162,7 @@
 	# fail during a first-time installation. The rm is before the move
 	# in case this is the third or later installation.
 	-if test $(ENABLE_DEEP_PROFILER) = yes ; then \
-		rm $(INSTALL_CGI_DIR)/mdprof_cgi.was ; \
+		rm -f $(INSTALL_CGI_DIR)/mdprof_cgi.was ; \
 		mv $(INSTALL_CGI_DIR)/mdprof_cgi \
 			$(INSTALL_CGI_DIR)/mdprof_cgi.was ; \
 		cp mdprof_cgi $(INSTALL_CGI_DIR) ; \
@@ -191,6 +191,6 @@
 	# value of $(ENABLE_DEEP_PROFILER) to check for the latter wouldn't
 	# necessarily do any good, since its setting may have changed since
 	# the original install.)
-	-rm $(INSTALL_CGI_DIR)/mdprof_cgi
+	-rm -f $(INSTALL_CGI_DIR)/mdprof_cgi
 
 #-----------------------------------------------------------------------------#
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list