[m-dev.] diff: fix hg test problem

Peter Ross petdr at cs.mu.OZ.AU
Tue Feb 1 14:34:53 AEDT 2000


Hi,


===================================================================


Estimated hours taken: 0.25

compiler/Mmakefile:
    The tests run on hg occur on a MS-DOS filesystem, so the chmod
    during .pp processing will fail, causing mmake to abort with an
    error.


Index: Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/mercury/compiler/Mmakefile,v
retrieving revision 1.23
diff -u -r1.23 Mmakefile
--- Mmakefile	1999/09/16 04:46:25	1.23
+++ Mmakefile	2000/02/01 03:31:28
@@ -74,7 +74,7 @@
 
 # Remove the #if line and everything between the #else and #endif lines.
 $(dates_subdir)%.pp_date: %.pp
-	m_file=$(<:.pp=.m); \
+	-m_file=$(<:.pp=.m); \
 	[ ! -f $$m_file ] || chmod +w $$m_file; \
 	sed	-e '/^#if *INCLUDE_ADITI_OUTPUT/s/.*//' \
 		-e '/^#else/,/^#endif/s/.*//' \
@@ -88,7 +88,7 @@
 # Remove everything between the #if line and the #else line,
 # and the #endif line.
 $(dates_subdir)%.pp_date: %.pp
-	m_file=$(<:.pp=.m); \
+	-m_file=$(<:.pp=.m); \
 	[ ! -f $$m_file ] || chmod +w $$m_file; \
 	sed	-e '/^#if *INCLUDE_ADITI_OUTPUT/,/^#else/s/.*//' \
 		-e '/^#endif/s/.*//' \

----
Peter Ross
PhD Student University of Melbourne
http://www.cs.mu.oz.au/~petdr/
--------------------------------------------------------------------------
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