summaryrefslogtreecommitdiff
path: root/vms/genconfig.pl
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-16 04:09:47 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-16 04:09:47 +0000
commitcceca5ed003bac658cb0392a14bb2f26d434bd78 (patch)
tree286c2340276a7cbefe1899f0f01767791bb31ea4 /vms/genconfig.pl
parenta9fb271febef206f32659f8abc5f9029ae2f7a25 (diff)
downloadperl-cceca5ed003bac658cb0392a14bb2f26d434bd78.tar.gz
propagate PERL_VERSION everywhere, add to pod
p4raw-id: //depot/perl@2957
Diffstat (limited to 'vms/genconfig.pl')
-rw-r--r--vms/genconfig.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/vms/genconfig.pl b/vms/genconfig.pl
index 45f50cad5f..e500e760a2 100644
--- a/vms/genconfig.pl
+++ b/vms/genconfig.pl
@@ -391,8 +391,14 @@ else { warn "Can't read ${outdir}crtl.opt - skipping 'libs' & 'libc'"; }
if (open(PL,"${outdir}patchlevel.h")) {
while (<PL>) {
- if (/^#define PATCHLEVEL\s+(\S+)/) { print OUT "PATCHLEVEL='$1'\n"; }
- elsif (/^#define SUBVERSION\s+(\S+)/) { print OUT "SUBVERSION='$1'\n"; }
+ if (/^#define PERL_VERSION\s+(\S+)/) {
+ print OUT "PERL_VERSION='$1'\n";
+ print OUT "PATCHLEVEL='$1'\n"; # XXX compat
+ }
+ elsif (/^#define PERL_SUBVERSION\s+(\S+)/) {
+ print OUT "PERL_SUBVERSION='$1'\n";
+ print OUT "SUBVERSION='$1'\n"; # XXX compat
+ }
}
close PL;
}