Get $Config{osvers} filled in on Win32
Steve Hay [Mon, 10 Jan 2005 09:45:50 +0000 (09:45 +0000)]
p4raw-id: //depot/perl@23776

win32/config_sh.PL

index 3c144f6..e1bc2dd 100644 (file)
@@ -70,6 +70,8 @@ $opt{INST_VER} =~ s|~VERSION~|$opt{VERSION}|g;
 $opt{'version_patchlevel_string'} = "version $opt{PERL_VERSION} subversion $opt{PERL_SUBVERSION}";
 $opt{'version_patchlevel_string'} .= " patchlevel $opt{PERL_PATCHLEVEL}" if exists $opt{PERL_PATCHLEVEL};
 
+$opt{'osvers'} = join '.', (Win32::GetOSVersion())[1,2];
+
 $opt{'cf_by'} = $ENV{USERNAME} unless $opt{'cf_by'};
 $opt{'cf_email'} = $opt{'cf_by'} . '@' . (gethostbyname('localhost'))[0]
        unless $opt{'cf_email'};