aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2017-08-27 17:45:55 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2017-08-27 17:45:55 +0000
commit933d2e6feca180afab815c81e42f3c8e15619cba (patch)
treebc0b2039f229aad8ed6e1d2d3438ff44a19abfec
parentd7681a22e27b56e108ca397f26ef06f3c631155b (diff)
downloaddoc-933d2e6feca180afab815c81e42f3c8e15619cba.tar.gz
doc-933d2e6feca180afab815c81e42f3c8e15619cba.zip
configure name for Architectures
Notes
Notes: svn path=/head/; revision=50732
-rwxr-xr-xen_US.ISO8859-1/htdocs/cgi/man.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/en_US.ISO8859-1/htdocs/cgi/man.cgi b/en_US.ISO8859-1/htdocs/cgi/man.cgi
index 1dff5cd059..4f65570318 100755
--- a/en_US.ISO8859-1/htdocs/cgi/man.cgi
+++ b/en_US.ISO8859-1/htdocs/cgi/man.cgi
@@ -745,6 +745,7 @@ my %valid_arch = map { $_ => 1 }
qw/acorn26 acorn32 algor alpha amd64 amiga arc arm arm26 arm32 armish atari aviion bebox cats cesfic cobalt dreamcast evbarm evbmips evbppc evbsh3 evbsh5 hp300 hp700 hpcarm hpcmips hpcsh hppa hppa64 i386 ibmnws landisk loongson luna68k luna88k mac68k macppc mipsco mmeye mvme68k mvme88k mvmeppc netwinder news68k newsmips next68k ofppc palm pc532 pegasos playstation2 pmax pmppc powerpc prep sandpoint sbmips sgi sgimips shark socppc sparc sparc64 sun2 sun3 sun3x tahoe vax walnut wgrisc x68k zaurus/;
my $default_arch = 'amd64';
+my %arch_names = ('default' => 'All Architectures');
my %arch = (
'FreeBSD 11.1-RELEASE' => { 'default' => 'i386', 'arch' => [qw/amd64 arm i386 powerpc sparc64/] } ,
@@ -1756,10 +1757,11 @@ ETX
foreach (@arch) {
my $selected = $_ eq $a ? ' selected="selected"' : "";
- print qq{<option $selected value="$_">$_</option>\n};
+ my $arch_name = exists $arch_names{$_} ? $arch_names{$_} : $_;
+ print qq{<option $selected value="$_">$arch_name</option>\n};
}
- print qq{</select>\nArchitecture\n\n};
+ print qq{</select>\n\n};
local ($m) = &encode_url($l);