summaryrefslogtreecommitdiff
path: root/plan9
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 /plan9
parenta9fb271febef206f32659f8abc5f9029ae2f7a25 (diff)
downloadperl-cceca5ed003bac658cb0392a14bb2f26d434bd78.tar.gz
propagate PERL_VERSION everywhere, add to pod
p4raw-id: //depot/perl@2957
Diffstat (limited to 'plan9')
-rw-r--r--plan9/genconfig.pl12
-rw-r--r--plan9/myconfig.plan92
-rw-r--r--plan9/versnum4
3 files changed, 12 insertions, 6 deletions
diff --git a/plan9/genconfig.pl b/plan9/genconfig.pl
index 458c4c3ee9..d934659ec4 100644
--- a/plan9/genconfig.pl
+++ b/plan9/genconfig.pl
@@ -261,12 +261,18 @@ foreach (sort keys %val_vars) {
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;
}
-else { warn "Can't read ${outdir}patchlevel.h - skipping 'PATCHLEVEL'"; }
+else { warn "Can't read ${outdir}patchlevel.h - skipping 'PERL_VERSION'"; }
print OUT "pager='/bin/p'\n";
diff --git a/plan9/myconfig.plan9 b/plan9/myconfig.plan9
index f336a7ce53..59512d5c9c 100644
--- a/plan9/myconfig.plan9
+++ b/plan9/myconfig.plan9
@@ -15,7 +15,7 @@
$spitshell<<!GROK!THIS!
-Summary of my $package ($baserev patchlevel $PATCHLEVEL) configuration:
+Summary of my $package ($baserev version $PERL_VERSION subversion $PERL_SUBVERSION) configuration:
Platform:
osname=$osname, osver=$osvers, archname=$archname
uname='$myuname'
diff --git a/plan9/versnum b/plan9/versnum
index 83e46826c3..6e579f3048 100644
--- a/plan9/versnum
+++ b/plan9/versnum
@@ -1,5 +1,5 @@
-/PATCHLEVEL/ {base = $3}
-/SUBVERSION/ {subvers = $3}
+/PERL_VERSION/ {base = $3}
+/PERL_SUBVERSION/ {subvers = $3}
END {
if (subvers == 0)
printf "p9pvers = 5.%03d\n", base> "buildinfo";