allow to specify tag used for changelog as --last-tag <tag>

This commit is contained in:
ralf 2023-11-22 10:01:57 +02:00
parent 3fd2cacf57
commit 2331fc4135

View File

@ -22,6 +22,7 @@ $config = array(
'packaging' => date('Ymd'), // '20160520'
'branch' => 'master', // checked out branch
'tag' => '$version.$packaging', // name of tag
'last-tag' => null, // tag to generate changelog from, default latest tag of given branch
'checkoutdir' => '~/epl-23.1-checkout', //realpath(__DIR__.'/../..'),
'egw_buildroot' => '/tmp/build_root/epl_23.1_buildroot',
'sourcedir' => '~/download/archives/egroupware-23.1',
@ -284,6 +285,11 @@ function get_last_git_tag()
{
global $config;
if (!empty($config['last-tag']))
{
return $config['last-tag'];
}
if (!is_dir($config['checkoutdir']))
{
throw new Exception("checkout directory '{$config['checkoutdir']} does NOT exists or is NO directory!");