diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-07 00:27:33 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-07 00:27:33 +0100 |
commit | 734cba45a53d5664b7c1f6ed88ccde51da8452d4 (patch) | |
tree | ab6f61528084f11ca9509b2f26049d92a344682c | |
parent | 86b42e633c7679d97e7844ecec4c7783c6aedff0 (diff) | |
download | gobject-introspection-734cba45a53d5664b7c1f6ed88ccde51da8452d4.tar.gz |
autotools: remove release helper targets
They haven't been used in years and would need an update for meson.
-rw-r--r-- | Makefile.am | 35 | ||||
-rw-r--r-- | misc/verbump.py | 52 |
2 files changed, 0 insertions, 87 deletions
diff --git a/Makefile.am b/Makefile.am index 44ed1153..952bf718 100644 --- a/Makefile.am +++ b/Makefile.am @@ -55,7 +55,6 @@ EXTRA_DIST += \ $(m4_DATA) \ misc/update-glib-annotations.py \ misc/update-gtkdoc-tests.py \ - misc/verbump.py \ README.rst \ MSVC.README.rst \ meson.build \ @@ -64,37 +63,3 @@ EXTRA_DIST += \ check.quality: (cd $(abs_top_srcdir) && $(PYTHON) -m flake8 --count); - -# Colin's handy Makefile bits for: -# 1) stuffing tarballs with pre-generated scripts from your workstation -# 2) bumping configure.ac version post-release -# 3) tagging correctly in git -# 4) uploading to gnome.org -# To use: -# $ make check -# $ make dist -# $ make prepare-minor-release - -# Customize to taste -TAG_PREFIX=GOBJECT_INTROSPECTION_ -COMPRESSION=.xz - - -PACKAGE=@PACKAGE@ -VERSION=@VERSION@ -DISTNAME=$(PACKAGE)-$(VERSION).tar$(COMPRESSION) -TAG_VERSION=$(shell echo $(VERSION) |sed s/\\\./_/g) - -prepare-release-tag: Makefile - git tag -m "Tag $(TAG_VERSION)" -a $(TAG_PREFIX)$(TAG_VERSION) - -prepare-minor-release: $(DISTNAME) prepare-release-tag Makefile - env top_srcdir=$(top_srcdir) python $(top_srcdir)/misc/verbump.py - -upload-release: $(DISTNAME) Makefile - 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 $(DISTNAME) master.gnome.org: - ssh master.gnome.org install-module $(DISTNAME) - diff --git a/misc/verbump.py b/misc/verbump.py deleted file mode 100644 index b8a8f4fd..00000000 --- a/misc/verbump.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python -# Automakes a release preparation for a post-release project -# * Create a git tag -# * Bump version in configure.ac and commit it - -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function -from __future__ import unicode_literals - -import re -import os -import sys -import subprocess - -micro_version_re = re.compile('m4_define.*gi_micro_version, ([0-9]+)') -micro_version_replace = 'm4_define(gi_micro_version, %d)\n' - -def _extract_config_log_variable(name): - f = open('config.log') - keystart = name + '=\'' - for line in f: - if line.startswith(keystart): - return line[len(keystart):-2] - f.close() - fatal("Failed to find '%s' in config.status" % (name, )) - -if not os.path.isfile('config.log'): - fatal("Couldn't find config.log; did you run configure?") -package = _extract_config_log_variable('PACKAGE_TARNAME') -version = _extract_config_log_variable('VERSION') - -configure_path=os.path.join(os.environ['top_srcdir'], 'configure.ac') -f = open(configure_path) -newf = open(configure_path + '.tmp', 'w') -for line in f: - m = micro_version_re.match(line) - if not m: - newf.write(line) - continue - v = int(m.group(1)) - newv = v+1 - print("Will update micro version from %s to %s" % (v, newv)) - newf.write(micro_version_replace % (newv, )) -newf.close() - -os.rename(configure_path + '.tmp', configure_path) -print("Successfully wrote new 'configure.ac' with post-release version bump") - -args=['git', 'commit', '-m', "configure: Post-release version bump", configure_path] -print("Running: %r" % (args, )) -subprocess.check_call(args) |