diff: bootcheck: change handling of --use-subdirs

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Nov 2 21:29:05 AEDT 1998


tools/bootcheck:
	Ensure that `--use-subdirs' defaults to `true' if
	there is a `Mercury' subdirectory in the `compiler' directory.
	This avoids various annoyances that occur if you're using subdirs
	and you forget to pass `--use-subdirs' to bootcheck.

Index: tools/bootcheck
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/bootcheck,v
retrieving revision 1.67
diff -u -r1.67 bootcheck
--- bootcheck	1998/10/16 06:20:02	1.67
+++ bootcheck	1998/10/27 17:37:57
@@ -72,7 +72,11 @@
 keep_stage_3=false
 keep_stage_2_sicstus=false
 test_sicstus=false
-use_subdirs=${MMAKE_USE_SUBDIRS=no}
+if [ -d compiler/Mercury ]; then
+	use_subdirs=${MMAKE_USE_SUBDIRS=yes}
+else
+	use_subdirs=${MMAKE_USE_SUBDIRS=no}
+fi
 
 # If you change these, you will also need to change scripts/ml.in,
 # scripts/c2init.in, Mmake.common.in, tools/binary, tools/binary_step

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