2010-06-05 06:34:14 +02:00
|
|
|
# File: VERSION.pm
|
|
|
|
#
|
2021-07-28 07:38:19 +02:00
|
|
|
# Purpose: Sets the PBot version constants.
|
2021-07-27 21:01:42 +02:00
|
|
|
#
|
2021-07-27 21:25:56 +02:00
|
|
|
# Rather than each PBot::Core package having its own version identifier, all
|
2021-07-28 07:48:27 +02:00
|
|
|
# of PBot is considered a single package. The BUILD_REVISION constant is the
|
2021-07-27 21:25:56 +02: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 21:01:42 +02:00
|
|
|
#
|
|
|
|
# TODO: The PBot::Plugin::* plugins probably should have their own version
|
2021-07-27 21:25:56 +02:00
|
|
|
# identifiers as a template for versioned $HOME/PBot/Plugin/ plugins.
|
2010-06-05 06:34:14 +02:00
|
|
|
|
2023-02-21 06:31:52 +01:00
|
|
|
# SPDX-FileCopyrightText: 2001-2023 Pragmatic Software <pragma78@gmail.com>
|
2021-07-11 00:00:22 +02:00
|
|
|
# SPDX-License-Identifier: MIT
|
2017-03-05 22:33:31 +01:00
|
|
|
|
2010-06-05 06:34:14 +02:00
|
|
|
package PBot::VERSION;
|
2021-07-28 07:38:19 +02:00
|
|
|
use parent 'PBot::Core::Class';
|
|
|
|
|
|
|
|
use PBot::Imports;
|
2020-01-20 04:53:45 +01:00
|
|
|
|
2021-07-27 21:25:56 +02:00
|
|
|
# These are set by the /misc/update_version script
|
2010-06-05 06:34:14 +02:00
|
|
|
use constant {
|
2020-02-15 23:38:32 +01:00
|
|
|
BUILD_NAME => "PBot",
|
2023-07-19 09:23:54 +02:00
|
|
|
BUILD_REVISION => 4681,
|
|
|
|
BUILD_DATE => "2023-07-19",
|
2010-06-05 06:34:14 +02:00
|
|
|
};
|
|
|
|
|
2021-07-28 07:38:19 +02:00
|
|
|
sub initialize {}
|
|
|
|
|
|
|
|
sub version {
|
|
|
|
return BUILD_NAME . ' version ' . BUILD_REVISION . ' ' . BUILD_DATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub revision {
|
|
|
|
return BUILD_REVISION;
|
|
|
|
}
|
|
|
|
|
2010-06-05 06:34:14 +02:00
|
|
|
1;
|