diff --git a/doc/rpm-build/checkout-build-archives.php b/doc/rpm-build/checkout-build-archives.php index ce7a37fc1d..0c16336f18 100755 --- a/doc/rpm-build/checkout-build-archives.php +++ b/doc/rpm-build/checkout-build-archives.php @@ -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!");