summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2003-07-11 18:24:13 +0200
committerunknown <lenz@mysql.com>2003-07-11 18:24:13 +0200
commit762b13468d914d6074ceda985fb0b95352dc8a56 (patch)
treefcec6be7a324927732677d92243fcde3d4de0371 /Build-tools
parentd974959b4f5a965d217597c4d979fee4a7a70506 (diff)
downloadmariadb-git-762b13468d914d6074ceda985fb0b95352dc8a56.tar.gz
- fixed a bug in Bootstrap script: simply searching for the last tagged
ChangeSet was not sufficient to get the full ChangeLog between two released versions (when using "--changelog=last") as merging between trees also merges the BK tags. Now we explicitely search for the last tagged ChangeSet that matches our major+minor version number, which should match the last ChangeSet used for the previous release. Build-tools/Bootstrap: - fixed a bug: simply searching for the last tagged ChangeSet was not sufficient to get the full ChangeLog between two released versions (when using "--changelog=last") as merging between trees also merges the BK tags. Now we explicitely search for the last tagged ChangeSet that matches our major+minor version number, which should match the last ChangeSet used for the previous release.
Diffstat (limited to 'Build-tools')
-rwxr-xr-xBuild-tools/Bootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build-tools/Bootstrap b/Build-tools/Bootstrap
index 9f5fc37736d..b16218cfc3b 100755
--- a/Build-tools/Bootstrap
+++ b/Build-tools/Bootstrap
@@ -43,6 +43,7 @@ $opt_test= undef;
$opt_skip_check= undef;
$opt_skip_manual= undef;
$version= "unknown";
+$major=$minor=$release=0;
GetOptions(
"build-command|b=s",
@@ -149,6 +150,7 @@ if (!$opt_dry_run)
{
m/^AM_INIT_AUTOMAKE\(mysql, ([1-9]\.[0-9]{1,2}\.[0-9]{1,2}.*)\)/;
$version= $1;
+ ($major, $minor, $release) = split(/\./,$version);
}
&logger("Found version string: $version");
@@ -218,7 +220,7 @@ if (defined $opt_changelog)
{
if (!$opt_revision)
{
- $revision= `bk changes -t -d':REV:' -n $REPO | head -1`;
+ $revision= `bk changes -t -d':REV:::TAG:' -n $REPO | grep mysql-$major-$minor | head -1 | cut -f1 -d ":"`;
}
else
{