If no band is explicitly specified, and the default band doesn't
authorChris Hanson <org/chris-hanson/cph>
Mon, 16 Oct 2000 17:22:18 +0000 (17:22 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 16 Oct 2000 17:22:18 +0000 (17:22 +0000)
exist, look for alternatives.

v7/src/microcode/option.c
v7/src/microcode/version.h

index 1b1d8b988f9a752e1d03dea24e2034e6ced0ae15..673761a669002fb53591ff3187d1c14f83e0e0fb 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: option.c,v 1.53 2000/01/18 05:08:35 cph Exp $
+$Id: option.c,v 1.54 2000/10/16 17:22:12 cph Exp $
 
 Copyright (c) 1990-2000 Massachusetts Institute of Technology
 
@@ -1200,6 +1200,35 @@ DEFUN (read_command_line_options, (argc, argv),
   {
     CONST char * band_variable = BAND_VARIABLE;
     CONST char * default_band = DEFAULT_BAND;
+
+    /* If the default band doesn't exist, look for alternates.  */
+    if (!search_for_library_file (DEFAULT_BAND))
+      {
+       CONST char * alternate_bands [] =
+         {
+           ALL_DEFAULT_BAND,
+           COMPILER_DEFAULT_BAND,
+           EDWIN_DEFAULT_BAND,
+           "6001.com",
+           "mechanics.com",
+           0
+         };
+       unsigned int i = 0;
+       while (1)
+         {
+           CONST char * band = (alternate_bands[i]);
+           if (band == 0)
+             break;
+           if (search_for_library_file (band))
+             {
+               default_band = band;
+               option_large_sizes = 1;
+               break;
+             }
+           i += 1;
+         }
+      }
+
     option_band_specified = 0;
     if (option_band_file != 0)
       xfree (option_band_file);
index 64111f35fae219b1095865f20dd694f5ad978c57..363fad38ec267341ccc5264d2b30e69909cd64b5 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: version.h,v 11.173 2000/05/20 18:59:16 cph Exp $
+$Id: version.h,v 11.174 2000/10/16 17:22:18 cph Exp $
 
 Copyright (c) 1988-2000 Massachusetts Institute of Technology
 
@@ -33,5 +33,5 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #define VERSION                11
 #endif
 #ifndef SUBVERSION
-#define SUBVERSION     169
+#define SUBVERSION     170
 #endif