[m-rev.] diff: avoid relying on "ln"
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu May 15 18:05:10 AEST 2003
Estimated hours taken: 0.25
Branches: main
compiler/Mmakefile:
Use "cp" as a fall-back if "ln" fails.
Workspace: /home/ceres/fjh/mercury
Index: compiler/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.74
diff -u -d -r1.74 Mmakefile
--- compiler/Mmakefile 7 May 2003 12:53:33 -0000 1.74
+++ compiler/Mmakefile 15 May 2003 08:01:49 -0000
@@ -191,7 +191,8 @@
mercury_compile$(EXT_FOR_EXE): $(MC_PROG)$(EXT_FOR_EXE)
rm -f mercury_compile$(EXT_FOR_EXE)
- $(LN) $(MC_PROG)$(EXT_FOR_EXE) mercury_compile$(EXT_FOR_EXE)
+ $(LN) $(MC_PROG)$(EXT_FOR_EXE) mercury_compile$(EXT_FOR_EXE) || \
+ cp $(MC_PROG)$(EXT_FOR_EXE) mercury_compile$(EXT_FOR_EXE)
ifeq ($(findstring il,$(GRADE)),il)
# set the stack size to 100M -- the default of 1M is too low
-editbin /nologo /stack:100000000 mercury_compile$(EXT_FOR_EXE)
@@ -204,7 +205,8 @@
mercury_compile_init.$O: $(MC_PROG)_init.$O
rm -f mercury_compile_init.$O
- $(LN) $(MC_PROG)_init.$O mercury_compile_init.$O
+ $(LN) $(MC_PROG)_init.$O mercury_compile_init.$O || \
+ cp $(MC_PROG)_init.$O mercury_compile_init.$O
#-----------------------------------------------------------------------------#
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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