mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-02 18:19:33 +01:00
39 lines
839 B
Perl
39 lines
839 B
Perl
# File: VERSION.pm
|
|
#
|
|
# Purpose: Keeps track of bot version. Can compare current version against
|
|
# latest version on github or URL in `version.check_url` registry entry.
|
|
|
|
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
package PBot::VERSION;
|
|
use parent 'PBot::Core::Class';
|
|
|
|
use PBot::Imports;
|
|
|
|
use Exporter qw/import/;
|
|
our @EXPORT = ();
|
|
our %EXPORT_TAGS = (
|
|
'all' => [qw/BUILD_NAME BUILD_REVISION BUILD_DATE/],
|
|
);
|
|
our @EXPORT_OK = (
|
|
@{ $EXPORT_TAGS{all} },
|
|
);
|
|
|
|
# These are set automatically by the misc/update_version script
|
|
use constant {
|
|
BUILD_NAME => "PBot",
|
|
BUILD_REVISION => 4295,
|
|
BUILD_DATE => "2021-07-24",
|
|
};
|
|
|
|
sub initialize {
|
|
# nothing to do here
|
|
}
|
|
|
|
sub version {
|
|
return BUILD_NAME . " version " . BUILD_REVISION . " " . BUILD_DATE;
|
|
}
|
|
|
|
1;
|