svn commit: r50732 - head/en_US.ISO8859-1/htdocs/cgi

Wolfram Schneider wosch at FreeBSD.org
Sun Aug 27 17:45:56 UTC 2017


Author: wosch
Date: Sun Aug 27 17:45:55 2017
New Revision: 50732
URL: https://svnweb.freebsd.org/changeset/doc/50732

Log:
  configure name for Architectures

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/man.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 17:45:52 2017	(r50731)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 17:45:55 2017	(r50732)
@@ -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);
 


More information about the svn-doc-all mailing list