diff --git a/modules/ksb/Version.pm b/modules/ksb/Version.pm index 0338aa4..f72fb9c 100644 --- a/modules/ksb/Version.pm +++ b/modules/ksb/Version.pm @@ -1,36 +1,36 @@ package ksb::Version; # Pretty much just records the program-wide version number... use strict; use warnings; use 5.014; use IPC::Cmd qw(run can_run); # It is expected that future git tags will be in the form 'YY.MM' and will # be time-based instead of event-based as with previous releases. -our $VERSION = '18.04'; +our $VERSION = '18.10'; our $SCRIPT_PATH = ''; # For auto git-versioning our $SCRIPT_VERSION = $VERSION; use Exporter qw(import); our @EXPORT = qw(scriptVersion); sub scriptVersion() { if ($SCRIPT_PATH && can_run('git') && -d "$SCRIPT_PATH/.git") { my ($ok, $err_msg, undef, $stdout) = IPC::Cmd::run( command => ['git', "--git-dir=$SCRIPT_PATH/.git", 'describe'], verbose => 0); my $output = $stdout->[0] // ''; chomp $output; return "$SCRIPT_VERSION ($output)" if ($ok and $output); } return $SCRIPT_VERSION; } 1;