2010-10-03 09:53:14 -04:00
|
|
|
# To make real stable releases or devel snapshots, use either:
|
|
|
|
# make release-check
|
|
|
|
# or make release-publish
|
|
|
|
|
|
|
|
TAR_OPTIONS = --owner=0 --group=0
|
|
|
|
|
2012-06-19 04:38:01 -04:00
|
|
|
#RELEASE_UPLOAD_HOST = clutter-project.org
|
|
|
|
#RELEASE_UPLOAD_USER = clutter
|
|
|
|
#RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_USER)@$(RELEASE_UPLOAD_HOST):~$(RELEASE_UPLOAD_USER)/upload-source
|
2010-10-03 09:53:14 -04:00
|
|
|
|
2012-06-19 04:38:01 -04:00
|
|
|
#RELEASE_URL_BASE = http://source.clutter-project.org/sources/clutter
|
|
|
|
#RELEASE_URL = $(RELEASE_URL_BASE)/$(CLUTTER_MAJOR_VERSION).$(CLUTTER_MINOR_VERSION)
|
2010-10-03 09:53:14 -04:00
|
|
|
|
2014-09-22 07:01:30 -04:00
|
|
|
RELEASE_ANNOUNCE_LIST = clutter-list@gnome.org
|
2011-04-01 11:31:49 -04:00
|
|
|
RELEASE_ANNOUNCE_CC = gnome-announce-list@gnome.org
|
2010-10-03 12:21:10 -04:00
|
|
|
|
2015-05-12 06:51:04 -04:00
|
|
|
RELEASE_DOWNLOAD_URL = https://download.gnome.org/sources/clutter
|
|
|
|
|
2014-09-22 07:01:30 -04:00
|
|
|
RELEASE_DOC_URL = https://developer.gnome.org
|
2015-05-12 06:51:04 -04:00
|
|
|
REFERENCE_DOC_URL = $(RELEASE_DOC_URL)/clutter
|
|
|
|
COOKBOOK_DOC_URL = $(RELEASE_DOC_URL)/clutter-cookbook
|
2011-04-04 18:16:46 -04:00
|
|
|
|
2014-09-22 07:01:30 -04:00
|
|
|
BUGS_URL = https://bugzilla.gnome.org/enter_bug.cgi?product=clutter
|
2011-06-13 11:32:24 -04:00
|
|
|
|
2011-07-04 17:12:51 -04:00
|
|
|
tar_file = $(distdir).tar.xz
|
2010-10-03 12:21:10 -04:00
|
|
|
sha256_file = $(distdir).sha256sum
|
|
|
|
|
|
|
|
$(sha256_file): $(tar_file)
|
2010-10-04 10:47:53 -04:00
|
|
|
$(AM_V_GEN)sha256sum $^ > $@
|
2010-10-03 12:21:10 -04:00
|
|
|
|
2010-10-03 09:53:14 -04:00
|
|
|
release-tag:
|
|
|
|
@if test "x$(CLUTTER_RELEASE_STATUS)" = "xgit"; then \
|
2011-09-06 03:32:07 -04:00
|
|
|
echo "*** Cannot tag a Git version; please, update the Clutter version" >&2; \
|
2010-10-03 09:53:14 -04:00
|
|
|
else \
|
|
|
|
if test -d "$(top_srcdir)/.git"; then \
|
2014-09-22 07:01:30 -04:00
|
|
|
echo " TAG Tagging release $(CLUTTER_VERSION)..." ; \
|
2010-10-03 09:53:14 -04:00
|
|
|
$(top_srcdir)/build/missing --run git tag \
|
|
|
|
-s \
|
|
|
|
-m "Clutter $(CLUTTER_VERSION) ($(CLUTTER_RELEASE_STATUS))" \
|
|
|
|
$(CLUTTER_VERSION) ; \
|
|
|
|
else \
|
2011-09-06 03:32:07 -04:00
|
|
|
echo "*** A git checkout is required to tag a release" >&2; \
|
2010-10-03 09:53:14 -04:00
|
|
|
fi \
|
|
|
|
fi
|
|
|
|
|
2010-12-09 08:49:01 -05:00
|
|
|
release-check: release-verify-even-micro release-verify-sane-changelogs release-verify-news
|
2010-10-03 09:53:14 -04:00
|
|
|
TAR_OPTIONS="$(TAR_OPTIONS)" $(MAKE) $(AM_MAKEFLAGS) distcheck
|
|
|
|
|
2010-12-09 08:49:01 -05:00
|
|
|
release-verify-news:
|
2014-09-22 07:01:30 -04:00
|
|
|
@echo -n " CHK Checking that the NEWS file has been updated..."
|
2010-12-09 08:49:01 -05:00
|
|
|
@if ! grep -q "$(CLUTTER_VERSION)" $(top_srcdir)/NEWS; then \
|
|
|
|
(echo "Ouch." && \
|
2011-09-06 03:32:07 -04:00
|
|
|
echo "*** The version in the NEWS file does not match $(CLUTTER_VERSION)." && \
|
|
|
|
echo "*** This probably means you haven't updated the NEWS file." && \
|
2010-12-09 08:49:01 -05:00
|
|
|
false); else :; fi
|
|
|
|
@echo "Good."
|
|
|
|
|
2010-10-03 09:53:14 -04:00
|
|
|
release-verify-sane-changelogs: changelogs
|
2014-09-22 07:01:30 -04:00
|
|
|
@echo -n " CHK Checking that the ChangeLog files are sane..."
|
2010-10-03 09:53:14 -04:00
|
|
|
@if grep -q "is required to generate" $(CHANGELOGS); then \
|
|
|
|
(echo "Ouch." && \
|
2011-09-06 03:32:07 -04:00
|
|
|
echo "*** Some of the ChangeLogs are not generated correctly." && \
|
|
|
|
echo "*** Remove ChangeLog* and make changelogs" && false); else :; fi
|
2010-10-03 09:53:14 -04:00
|
|
|
@echo "Good."
|
|
|
|
|
|
|
|
release-verify-even-micro:
|
2014-09-22 07:01:30 -04:00
|
|
|
@echo -n " CHK Checking that $(VERSION) has an even micro component..."
|
2011-04-01 11:31:49 -04:00
|
|
|
@test "$(CLUTTER_MICRO_VERSION)" = "`echo $(CLUTTER_MICRO_VERSION)/2*2 | bc`" || \
|
|
|
|
(echo "Ouch." && \
|
2011-09-06 03:32:07 -04:00
|
|
|
echo "*** The version micro component '$(CLUTTER_MICRO_VERSION)' is not an even number." && \
|
|
|
|
echo "*** The version in configure.ac must be incremented before a new release." && \
|
2011-04-01 11:31:49 -04:00
|
|
|
false)
|
2010-10-03 09:53:14 -04:00
|
|
|
@echo "Good."
|
|
|
|
|
2010-10-04 10:47:53 -04:00
|
|
|
release-upload: $(sha256_file)
|
2014-09-22 07:01:30 -04:00
|
|
|
@echo -n " SCP Uploading to master.gnome.org... "
|
2011-04-04 17:34:10 -04:00
|
|
|
@scp $(tar_file) master.gnome.org:
|
2012-06-29 06:21:06 -04:00
|
|
|
@echo "Done."
|
2014-09-22 07:01:30 -04:00
|
|
|
@echo -n " EXEC Running ftpadmin install... "
|
2011-04-04 17:34:10 -04:00
|
|
|
@ssh master.gnome.org ftpadmin install $(tar_file)
|
2010-10-04 10:47:53 -04:00
|
|
|
@mv -f $(sha256_file) $(top_builddir)/build/$(sha256_file)
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo "Done."
|
2010-10-03 09:53:14 -04:00
|
|
|
|
|
|
|
release-message:
|
2011-04-01 11:31:49 -04:00
|
|
|
@echo " Release URL: $(RELEASE_URL)/$(tar_file)"
|
2010-10-03 12:21:10 -04:00
|
|
|
@echo "Release checksum: $(RELEASE_URL)/$(sha256_file)"
|
|
|
|
@echo "Send an email to: $(RELEASE_ANNOUNCE_LIST)"
|
2011-04-01 11:31:49 -04:00
|
|
|
@echo " Cc: $(RELEASE_ANNOUNCE_CC)"
|
2011-09-06 03:32:07 -04:00
|
|
|
@echo " Subject: ANNOUNCE: Clutter $(CLUTTER_VERSION) ($(CLUTTER_RELEASE_STATUS))"
|
2011-04-01 11:31:49 -04:00
|
|
|
@echo " Contents:"
|
2010-10-03 12:21:10 -04:00
|
|
|
@echo "--- CUT HERE ---"
|
2011-04-01 11:31:49 -04:00
|
|
|
@echo "Good news, everyone!"
|
2011-04-04 10:11:20 -04:00
|
|
|
@echo ""
|
2010-10-04 10:47:53 -04:00
|
|
|
@echo "A new Clutter $(CLUTTER_RELEASE_STATUS) is now available at:"
|
2010-10-03 12:21:10 -04:00
|
|
|
@echo ""
|
2015-05-12 06:51:04 -04:00
|
|
|
@echo " $(RELEASE_DOWNLOAD_URL)/$(CLUTTER_MAJOR_VERSION).$(CLUTTER_MINOR_VERSION)/"
|
2010-10-03 12:21:10 -04:00
|
|
|
@echo ""
|
|
|
|
@echo "SHA256 Checksum:"
|
|
|
|
@echo ""
|
|
|
|
@cat $(top_builddir)/build/$(sha256_file)
|
|
|
|
@echo ""
|
|
|
|
@echo "Additionally, a git clone of the source tree:"
|
2011-04-01 11:31:49 -04:00
|
|
|
@echo " git clone git://git.gnome.org/clutter"
|
2010-10-03 12:21:10 -04:00
|
|
|
@echo ""
|
|
|
|
@echo "will include a signed $(CLUTTER_VERSION) tag which points to a commit named:"
|
2011-04-05 06:24:03 -04:00
|
|
|
@echo " `git cat-file tag $(CLUTTER_VERSION) | $(GREP) ^object | $(SED) -e 's,object ,,'`"
|
2010-10-03 12:21:10 -04:00
|
|
|
@echo ""
|
|
|
|
@echo "which can be verified with:"
|
|
|
|
@echo " git verify-tag $(CLUTTER_VERSION)"
|
|
|
|
@echo ""
|
|
|
|
@echo "and can be checked out with a command such as:"
|
|
|
|
@echo " git checkout -b build $(CLUTTER_VERSION)"
|
|
|
|
@echo ""
|
2015-05-12 06:51:04 -04:00
|
|
|
@echo "Clutter is a library for creating compelling, dynamic, and portable graphical"
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo "user interfaces. Clutter is released under the terms of the GNU Lesser"
|
|
|
|
@echo "General Public License, version 2.1 or (at your option) later."
|
|
|
|
@echo ""
|
|
|
|
@echo "Clutter depends on:"
|
|
|
|
@echo " GLib ≥ @GLIB_REQ_VERSION@"
|
|
|
|
@echo " JSON-GLib ≥ @JSON_GLIB_REQ_VERSION@"
|
2011-09-06 03:32:07 -04:00
|
|
|
@echo " Cogl ≥ @COGL_REQ_VERSION@"
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo " Cairo ≥ @CAIRO_REQ_VERSION@"
|
|
|
|
@echo " Pango ≥ @PANGO_REQ_VERSION@"
|
|
|
|
@echo " Atk ≥ @ATK_REQ_VERSION@"
|
|
|
|
@echo ""
|
|
|
|
@echo "Clutter also has platform-specific dependencies; for more information, see"
|
2011-04-05 06:24:03 -04:00
|
|
|
@echo "the README file included in the release."
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo ""
|
|
|
|
@echo "Documentation:"
|
2012-06-29 06:21:06 -04:00
|
|
|
@if test "x$(CLUTTER_RELEASE_STATUS)" = "xsnapshot"; then \
|
2015-05-12 06:51:04 -04:00
|
|
|
echo " Clutter: $(REFERENCE_DOC_URL)/unstable/"; \
|
2012-06-29 06:21:06 -04:00
|
|
|
else \
|
2015-05-12 06:51:04 -04:00
|
|
|
echo " Clutter: $(REFERENCE_DOC_URL)/stable/"; \
|
2012-06-29 06:21:06 -04:00
|
|
|
fi
|
2015-05-12 06:51:04 -04:00
|
|
|
@echo " Cookbook: $(COOKBOOK_DOC_URL)/$(CLUTTER_MAJOR_VERSION).$(CLUTTER_MINOR_VERSION)/"
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo ""
|
|
|
|
@echo "Release Notes:"
|
2011-06-13 11:32:24 -04:00
|
|
|
@if test "x$(CLUTTER_RELEASE_STATUS)" = "xsnapshot"; then \
|
|
|
|
echo " - This is an unstable snapshot of Clutter; there are no compatibility"; \
|
|
|
|
echo " guarantees for API added during a development cycle." ; \
|
|
|
|
fi
|
2015-05-12 06:51:04 -04:00
|
|
|
@echo " - This version is API and ABI compatible with the previous stable"
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo " release of Clutter."
|
|
|
|
@echo " - Installing the contents of this release will overwrite the files"
|
2015-05-12 06:51:04 -04:00
|
|
|
@echo " from the installation of the previous release of Clutter."
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo " - Bugs should be reported on the Clutter Bugzilla product, at:"
|
2011-06-13 11:32:24 -04:00
|
|
|
@echo " ${BUGS_URL}"
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo ""
|
2011-04-05 06:24:03 -04:00
|
|
|
@$(SED) -n '1bend;/^Clutter /q;:end;2,$$p' $(top_srcdir)/NEWS | $(GREP) -v '^======'
|
2011-04-04 17:34:10 -04:00
|
|
|
@echo ""
|
|
|
|
@echo "Have fun with Clutter!"
|
2010-10-03 12:21:10 -04:00
|
|
|
@echo "--- CUT HERE ---"
|
2010-10-03 09:53:14 -04:00
|
|
|
|
|
|
|
release-publish: release-check
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) release-tag
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) release-upload
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) release-message
|
|
|
|
|
|
|
|
.PHONY: \
|
|
|
|
release-check \
|
|
|
|
release-message \
|
|
|
|
release-publish \
|
|
|
|
release-tag \
|
|
|
|
release-upload \
|
|
|
|
release-verify-even-micro \
|
|
|
|
release-verify-sane-changelogs
|