[m-dev.] trivial diff: fix permissions problem in scripts/Mmakefile

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Feb 2 09:08:00 AEDT 2000


Estimated hours taken: 0.25

scripts/Mmakefile:
	Fix a permissions problem: don't fail if `chmod u+w' fails.
	That can happen even if the file is writable, if you don't
	own it; if the failure is really going to cause a problem
	then the problem will be detected when we try to write
	to the file (e.g. next time it is installed).

Workspace: /home/mercury0/fjh/mercury
Index: scripts/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmakefile,v
retrieving revision 1.19
diff -u -d -r1.19 Mmakefile
--- Mmakefile	1999/11/23 08:49:37	1.19
+++ Mmakefile	2000/02/01 22:04:02
@@ -67,7 +67,7 @@
 	# deny you permission to write the file while mmake is running).
 	-mv $(INSTALL_BINDIR)/mmake $(INSTALL_BINDIR)/mmake.old
 	cp $(SCRIPTS) $(INSTALL_BINDIR) 
-	for file in $(SCRIPTS); do \
+	-for file in $(SCRIPTS); do \
 		chmod u+w $(INSTALL_BINDIR)/$$file ;\
 	done
 	-rm -f $(INSTALL_BINDIR)/mmake.old

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list