diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2004-05-18 14:39:41 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2004-05-18 14:39:41 +0000 |
commit | f562e697f50add73fd6157b169bc9bac02aff1a1 (patch) | |
tree | 4c6083c657aa16357449be9d958ceba684ee1ef4 /modules/Version.pm | |
parent | ab62dcd73f740c95da4d6480a51b4016f47414d4 (diff) | |
download | MPC-f562e697f50add73fd6157b169bc9bac02aff1a1.tar.gz |
ChangeLogTag: Tue May 18 09:37:29 2004 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/Version.pm')
-rw-r--r-- | modules/Version.pm | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/modules/Version.pm b/modules/Version.pm index 8897a25b..f1a9b4f5 100644 --- a/modules/Version.pm +++ b/modules/Version.pm @@ -16,7 +16,30 @@ use strict; # Data Section # ************************************************************ -my($version) = '3.1.1'; +## This is the starting major and minor version +my($version) = '3.1'; + +## Here we determine the beta version. The base variable +## is the negated number of existing ChangeLog entries at the +## time of the release of the major and minor version. We then +## add the total number of ChangeLog entries to the base to +## get the beta version. +my($base) = -36; +if (open(CLH, ::getBasePath() . '/ChangeLog')) { + while(<CLH>) { + if (/^\w\w\w\s/) { + ++$base; + } + } + close(CLH); + + ## We then append the beta version number to the version string + $version .= ".$base"; +} +else { + print "WARNING: Unable to determine the beta version number of MPC\n"; +} + # ************************************************************ # Subroutine Section |