trivial diff: --use-subdirs: bug fix for `mmake install' rule

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Mar 20 15:18:29 AEDT 1998


Estimated hours taken: 0.25

library/Mmakefile:
	Fix a bug in rule for `mmake install_ints' which creates the
	Mercury/ints etc. subdirectories: change the code so that the
	rule works when installing over the top of an already existing
	installation.

Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/library/Mmakefile,v
retrieving revision 1.26
diff -u -u -r1.26 Mmakefile
--- Mmakefile	1998/03/20 02:58:17	1.26
+++ Mmakefile	1998/03/20 04:17:15
@@ -327,6 +327,7 @@
 	[ -d $(INSTALL_INT_DIR)/Mercury ] || \
 		mkdir -p $(INSTALL_INT_DIR)/Mercury
 	for dir in ints int2s int3s opts trans_opts; do \
+		rm -f $(INSTALL_INT_DIR)/Mercury/$$dir; \
 		ln -s .. $(INSTALL_INT_DIR)/Mercury/$$dir; \
 	done
 

-- 
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.



More information about the developers mailing list