diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-16 04:09:47 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-16 04:09:47 +0000 |
commit | 2f3e41f4d95bdff4ae7b58358dc2e57a03559e39 (patch) | |
tree | 286c2340276a7cbefe1899f0f01767791bb31ea4 /plan9 | |
parent | 47c6f557567bf25b0b8a844a6c8f3636ce9e6018 (diff) | |
download | perl-2f3e41f4d95bdff4ae7b58358dc2e57a03559e39.tar.gz |
propagate PERL_VERSION everywhere, add to pod
p4raw-id: //depot/perl@2957
Diffstat (limited to 'plan9')
-rw-r--r-- | plan9/genconfig.pl | 12 | ||||
-rw-r--r-- | plan9/myconfig.plan9 | 2 | ||||
-rw-r--r-- | plan9/versnum | 4 |
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"; |