2010-06-05 04:34:14 +00:00
|
|
|
# File: VERSION.pm
|
|
|
|
#
|
2021-07-27 22:38:19 -07:00
|
|
|
# Purpose: Sets the PBot version constants.
|
2021-07-27 12:01:42 -07:00
|
|
|
#
|
2021-07-27 12:25:56 -07:00
|
|
|
# Rather than each PBot::Core package having its own version identifier, all
|
2021-07-27 22:48:27 -07:00
|
|
|
# of PBot is considered a single package. The BUILD_REVISION constant is the
|
2021-07-27 12:25:56 -07:00
|
|
|
# count of git commits to the PBot repository.
|
|
|
|
#
|
|
|
|
# See also the version command in PBot::Core::Commands::Version. It can compare
|
|
|
|
# the local PBot version against latest version on GitHub (or the URL in
|
|
|
|
# the `version.check_url` registry entry) to notify users of the availability
|
|
|
|
# of a new version.
|
2021-07-27 12:01:42 -07:00
|
|
|
#
|
|
|
|
# TODO: The PBot::Plugin::* plugins probably should have their own version
|
2021-07-27 12:25:56 -07:00
|
|
|
# identifiers as a template for versioned $HOME/PBot/Plugin/ plugins.
|
2010-06-05 04:34:14 +00:00
|
|
|
|
2021-07-10 15:00:22 -07:00
|
|
|
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
|
|
|
|
# SPDX-License-Identifier: MIT
|
2017-03-05 21:33:31 +00:00
|
|
|
|
2010-06-05 04:34:14 +00:00
|
|
|
package PBot::VERSION;
|
2021-07-27 22:38:19 -07:00
|
|
|
use parent 'PBot::Core::Class';
|
|
|
|
|
|
|
|
use PBot::Imports;
|
2020-01-19 19:53:45 -08:00
|
|
|
|
2021-07-27 12:25:56 -07:00
|
|
|
# These are set by the /misc/update_version script
|
2010-06-05 04:34:14 +00:00
|
|
|
use constant {
|
2020-02-15 14:38:32 -08:00
|
|
|
BUILD_NAME => "PBot",
|
2022-08-07 19:10:34 -07:00
|
|
|
BUILD_REVISION => 4566,
|
2022-08-07 19:05:43 -07:00
|
|
|
BUILD_DATE => "2022-08-07",
|
2010-06-05 04:34:14 +00:00
|
|
|
};
|
|
|
|
|
2021-07-27 22:38:19 -07:00
|
|
|
sub initialize {}
|
|
|
|
|
|
|
|
sub version {
|
|
|
|
return BUILD_NAME . ' version ' . BUILD_REVISION . ' ' . BUILD_DATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub revision {
|
|
|
|
return BUILD_REVISION;
|
|
|
|
}
|
|
|
|
|
2010-06-05 04:34:14 +00:00
|
|
|
1;
|