From 6a4395e413e68d1f9bf54f83585f185215f529ab Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 11 Jun 2013 15:05:42 +0200 Subject: [PATCH] make-release: keep a log of tags made, since I don't trust myself with git Change-Id: I251d59820ccc34433d9e19d428ec0a52773e554d --- dev/make-release | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev/make-release b/dev/make-release index c578e113c..c71385d0d 100755 --- a/dev/make-release +++ b/dev/make-release @@ -48,6 +48,14 @@ foreach my $d (qw{ system("git", "commit", "-m", "Add VERSION file and clean tree for release $version") and die "Failed to commit"; system("git", "tag", $version) and die "Failed to tag"; +my $commit = do { open(my $f, ".git/refs/tags/$version") or die; local $/; <$f> }; +chomp $commit; + +system("git", "checkout", "master") and die; +open(my $fh, ">>misc/release-history-tags"); +print $fh "$commit\t$version\n"; +close($fh); + print "Created branch $new_branch from master, cleaned it and wrote VERSION file, & tagged $version.\n"; print "\n"; print "Push with:\n";