[m-rev.] trivial diff: fix --use-subdirs bug in compiler/Mmakefile

Simon Taylor stayl at cs.mu.OZ.AU
Mon Oct 1 15:35:26 AEST 2001


Estimated hours taken: 0.1
Branches: main, release

compiler/Mmakefile:
	Make sure the `Mercury/dates' directory exists before
	attempting to add `.pp_date' files to it.

Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.47
diff -u -u -r1.47 Mmakefile
--- Mmakefile	2001/07/23 22:41:32	1.47
+++ Mmakefile	2001/10/01 05:29:14
@@ -182,6 +182,7 @@
 # Force regeneration of the preprocessed modules.
 # This is necessary if the setting of `INCLUDE_ADITI_OUTPUT' has changed.
 regenerate_preprocessed_files:
+	-[ -d ./$(dates_subdir) ] || mkdir -p ./$(dates_subdir)
 	touch $(PREPROCESSED_FILES)
 	$(MMAKE) $(PREPROCESSED_M_FILES)
 
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list