2015-06-22 19:11:07 +02:00
|
|
|
####################################################################################################################################
|
|
|
|
# VERSION MODULE
|
|
|
|
#
|
2018-11-25 02:05:03 +02:00
|
|
|
# Contains project version and format numbers.
|
2015-06-22 19:11:07 +02:00
|
|
|
####################################################################################################################################
|
2016-04-14 15:30:54 +02:00
|
|
|
package pgBackRest::Version;
|
2015-06-22 19:11:07 +02:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => qw(all);
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
use Cwd qw(abs_path);
|
2015-06-22 19:11:07 +02:00
|
|
|
use Exporter qw(import);
|
2015-08-29 20:20:46 +02:00
|
|
|
our @EXPORT = qw();
|
2015-06-22 19:11:07 +02:00
|
|
|
|
2016-04-14 15:30:54 +02:00
|
|
|
# Project Name
|
|
|
|
#
|
|
|
|
# Defines the official project name.
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
2018-11-25 02:05:03 +02:00
|
|
|
use constant PROJECT_NAME => 'pgBackRest';
|
|
|
|
push @EXPORT, qw(PROJECT_NAME);
|
|
|
|
use constant PROJECT_EXE => lc(PROJECT_NAME);
|
|
|
|
push @EXPORT, qw(PROJECT_EXE);
|
|
|
|
use constant PROJECT_CONF => PROJECT_EXE . '.conf';
|
|
|
|
push @EXPORT, qw(PROJECT_CONF);
|
2016-04-14 15:30:54 +02:00
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
# Binary location
|
|
|
|
#
|
|
|
|
# Stores the exe location.
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
2018-11-25 02:05:03 +02:00
|
|
|
my $strProjectBin;
|
2017-11-27 01:43:51 +02:00
|
|
|
|
2018-11-25 02:05:03 +02:00
|
|
|
sub projectBin {return $strProjectBin};
|
|
|
|
sub projectBinSet {$strProjectBin = shift}
|
2017-11-27 01:43:51 +02:00
|
|
|
|
2018-11-25 02:05:03 +02:00
|
|
|
push @EXPORT, qw(projectBin projectBinSet);
|
2016-08-24 18:39:27 +02:00
|
|
|
|
2018-11-25 02:05:03 +02:00
|
|
|
# Project Version Number
|
2015-06-22 19:11:07 +02:00
|
|
|
#
|
|
|
|
# Defines the current version of the BackRest executable. The version number is used to track features but does not affect what
|
|
|
|
# repositories or manifests can be read - that's the job of the format number.
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
2019-11-12 22:56:28 +02:00
|
|
|
use constant PROJECT_VERSION => '2.20dev';
|
2018-11-25 02:05:03 +02:00
|
|
|
push @EXPORT, qw(PROJECT_VERSION);
|
2015-06-22 19:11:07 +02:00
|
|
|
|
2018-11-25 02:05:03 +02:00
|
|
|
# Repository Format Number
|
2015-06-22 19:11:07 +02:00
|
|
|
#
|
|
|
|
# Defines format for info and manifest files as well as on-disk structure. If this number changes then the repository will be
|
|
|
|
# invalid unless migration functions are written.
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
2018-11-25 02:05:03 +02:00
|
|
|
use constant REPOSITORY_FORMAT => 5;
|
|
|
|
push @EXPORT, qw(REPOSITORY_FORMAT);
|
2015-06-22 19:11:07 +02:00
|
|
|
|
|
|
|
1;
|