From b9638936ae6f3d6692ff758e10f37898b1a6d9b0 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 16 Oct 2000 17:22:18 +0000 Subject: [PATCH] If no band is explicitly specified, and the default band doesn't exist, look for alternatives. --- v7/src/microcode/option.c | 31 ++++++++++++++++++++++++++++++- v7/src/microcode/version.h | 4 ++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/v7/src/microcode/option.c b/v7/src/microcode/option.c index 1b1d8b988..673761a66 100644 --- a/v7/src/microcode/option.c +++ b/v7/src/microcode/option.c @@ -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); diff --git a/v7/src/microcode/version.h b/v7/src/microcode/version.h index 64111f35f..363fad38e 100644 --- a/v7/src/microcode/version.h +++ b/v7/src/microcode/version.h @@ -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 -- 2.25.1