diff options
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r-- | win32/config_sh.PL | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 21829fd2e3..67f9c20353 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -66,6 +66,15 @@ if (-e $pl_h) { else { die "Can't find $pl_h: $!"; } + +my $patch_file = '../.patch'; + +if (-e $patch_file) { + open my $fh, "<", $patch_file or die "Can't open $patch_file: $!"; + chomp($opt{PERL_PATCHLEVEL} = <$fh>); + close $fh; +} + $opt{VERSION} = "$opt{PERL_REVISION}.$opt{PERL_VERSION}.$opt{PERL_SUBVERSION}"; $opt{INST_VER} =~ s|~VERSION~|$opt{VERSION}|g; $opt{'version_patchlevel_string'} = "version $opt{PERL_VERSION} subversion $opt{PERL_SUBVERSION}"; |