From 3d68b58cbbfef30b7a901e72ab18e5c958d0b518 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 11 Feb 2003 22:01:55 +0000 Subject: [PATCH] Don't prompt for an IOC target architecture if there's only one available. --- src/makeBaseApp/makeBaseApp.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/makeBaseApp/makeBaseApp.pl b/src/makeBaseApp/makeBaseApp.pl index d67d8a7fc..a63631727 100755 --- a/src/makeBaseApp/makeBaseApp.pl +++ b/src/makeBaseApp/makeBaseApp.pl @@ -201,6 +201,9 @@ sub get_commandline_opts { #no args closedir BINDIR; if ($opt_a) { $arch = $opt_a; + } elsif (@archs == 1) { + $arch = $archs[0]; + print "Using target architecture $arch (only one available)\n"; } else { print "The following target architectures are available in base:\n"; foreach $arch (@archs) {