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
|
|
|
|
|
|
|
|
RELEASE_UPLOAD_HOST = clutter-project.org
|
|
|
|
RELEASE_UPLOAD_USER = clutter
|
|
|
|
RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_USER)@$(RELEASE_UPLOAD_HOST):~$(RELEASE_UPLOAD_USER)/upload-source
|
|
|
|
|
|
|
|
RELEASE_URL_BASE = http://source.clutter-project.org/sources/clutter
|
|
|
|
RELEASE_URL = $(RELEASE_URL_BASE)/$(CLUTTER_MAJOR_VERSION).$(CLUTTER_MINOR_VERSION)
|
|
|
|
|
2011-04-01 11:31:49 -04:00
|
|
|
RELEASE_ANNOUNCE_LIST = clutter-announce@clutter-project.org
|
|
|
|
RELEASE_ANNOUNCE_CC = gnome-announce-list@gnome.org
|
2010-10-03 12:21:10 -04:00
|
|
|
|
2011-04-01 11:31:49 -04:00
|
|
|
tar_file = $(distdir).tar.bz2
|
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 \
|
|
|
|
echo "Cannot tag a Git version; please, update the Clutter version" >&2; \
|
|
|
|
else \
|
|
|
|
if test -d "$(top_srcdir)/.git"; then \
|
|
|
|
echo "Tagging release $(CLUTTER_VERSION)..." ; \
|
|
|
|
$(top_srcdir)/build/missing --run git tag \
|
|
|
|
-s \
|
|
|
|
-m "Clutter $(CLUTTER_VERSION) ($(CLUTTER_RELEASE_STATUS))" \
|
|
|
|
$(CLUTTER_VERSION) ; \
|
|
|
|
else \
|
|
|
|
echo A git checkout is required to tag a release >&2; \
|
|
|
|
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:
|
|
|
|
@echo -n "Checking that the NEWS file has been updated..."
|
|
|
|
@if ! grep -q "$(CLUTTER_VERSION)" $(top_srcdir)/NEWS; then \
|
|
|
|
(echo "Ouch." && \
|
|
|
|
echo "The version in the NEWS file does not match $(CLUTTER_VERSION)." && \
|
|
|
|
echo "This probably means you haven't updated the NEWS file." && \
|
|
|
|
false); else :; fi
|
|
|
|
@echo "Good."
|
|
|
|
|
2010-10-03 09:53:14 -04:00
|
|
|
release-verify-sane-changelogs: changelogs
|
|
|
|
@echo -n "Checking that the ChangeLog files are sane..."
|
|
|
|
@if grep -q "is required to generate" $(CHANGELOGS); then \
|
|
|
|
(echo "Ouch." && \
|
|
|
|
echo "Some of the ChangeLogs are not generated correctly." && \
|
|
|
|
echo "Remove ChangeLog* and make changelogs" && false); else :; fi
|
|
|
|
@echo "Good."
|
|
|
|
|
|
|
|
release-verify-even-micro:
|
|
|
|
@echo -n "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." && \
|
|
|
|
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." && \
|
|
|
|
false)
|
2010-10-03 09:53:14 -04:00
|
|
|
@echo "Good."
|
|
|
|
|
2010-10-04 10:47:53 -04:00
|
|
|
release-upload: $(sha256_file)
|
2010-10-03 12:21:10 -04:00
|
|
|
@scp $(tar_file) $(RELEASE_UPLOAD_DIR)
|
2010-10-04 10:47:53 -04:00
|
|
|
@mv -f $(sha256_file) $(top_builddir)/build/$(sha256_file)
|
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)"
|
|
|
|
@echo " Subject: Clutter $(CLUTTER_VERSION) ($(CLUTTER_RELEASE_STATUS))"
|
|
|
|
@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 ""
|
|
|
|
@echo " $(RELEASE_URL)/$(tar_file)"
|
|
|
|
@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:"
|
|
|
|
@echo " `git cat-file tag $(CLUTTER_VERSION) | grep ^object | sed -e 's,object ,,'`"
|
|
|
|
@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 ""
|
|
|
|
@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
|