[m-rev.] diff: fix Windows symlink problem in tools/bootcheck

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Aug 11 16:04:59 AEST 2001


tools/bootcheck:
	Fix a problem with symlinks on Windows that showed up
	since Pete added `ilc' to the list of grades to install
	by default.

Index: bootcheck
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/bootcheck,v
retrieving revision 1.120
diff -u -d -r1.120 bootcheck
--- bootcheck	31 Jul 2001 06:28:25 -0000	1.120
+++ bootcheck	11 Aug 2001 06:01:55 -0000
@@ -453,8 +453,13 @@
 		cd runtime
 		$LN_S $root/runtime/*.h .
 		$LN_S $root/runtime/*.c .
-		$LN_S $root/runtime/*.cpp .
-		$LN_S $root/runtime/mercury_il.il .
+		# We need to use $LN rather than $LN_S for the files
+		# that get processed with Microsoft's tools, since
+		# Microsoft's tools don't understand Cygwin symbolic links
+		# (hard links are OK, Cygwin's ln just makes copies).
+		$LN $root/runtime/*.cpp .
+		$LN $root/runtime/mercury_mcpp.h .
+		$LN $root/runtime/mercury_il.il .
 		$LN_S $root/runtime/*.in .
 		cp $root/runtime/Mmake* .
 		$LN_S $root/runtime/machdeps .
-- 
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