From: Steve Hay Date: Mon, 10 Jan 2005 09:45:50 +0000 (+0000) Subject: Get $Config{osvers} filled in on Win32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dbd14d13db8b3046be55e57200afd57e6bac0404;p=p5sagit%2Fp5-mst-13.2.git Get $Config{osvers} filled in on Win32 p4raw-id: //depot/perl@23776 --- diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 3c144f6..e1bc2dd 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -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'};