mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
allow to specify tag used for changelog as --last-tag <tag>
This commit is contained in:
parent
3fd2cacf57
commit
2331fc4135
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user