From 734a6041a8c7671324ba21f943e712e57bf992b0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Mar 2011 14:47:30 -0500 Subject: Makefile: Rework release tools Separate "preparing" a release locally from actually uploading it, and automate bumping the version in configure.ac. --- Makefile.am | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index de8bab33..940fc1a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -55,14 +55,19 @@ EXTRA_DIST += \ misc/pre-commit \ misc/pyflakes.py -release-tag: +prepare-release-tag: @TAG=`echo $(VERSION)|sed s/\\\./_/g`;\ - echo "* Tagging $(VERSION)"; \ + echo "git tag GOBJECT_INTROSPECTION_$$TAG"; \ git tag -m "Tag $$VERSION" -a \ - GOBJECT_INTROSPECTION_$$TAG && \ - git push --tags ssh://git.gnome.org/git/gobject-introspection + GOBJECT_INTROSPECTION_$$TAG + +prepare-minor-release: $(distdir).tar.bz2 prepare-release-tag + python $(top_srcdir)/tools/verbump.py upload-release: $(distdir).tar.bz2 + git log origin/master..master + @echo -n "Ok to push? [y/N] "; read ans; test x$$ans == xy || exit 1 + git push --tags origin master:master scp $(distdir).tar.bz2 gnome.org: ssh gnome.org install-module $(distdir).tar.bz2 -- cgit v1.2.1