File: Makefile.am.release

package info (click to toggle)
clutter-1.0 1.26.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 34,352 kB
  • sloc: ansic: 128,533; sh: 5,580; xml: 1,641; makefile: 1,613; ruby: 149; perl: 142; sed: 16
file content (166 lines) | stat: -rw-r--r-- 6,426 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# 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)

RELEASE_ANNOUNCE_LIST = clutter-list@gnome.org
RELEASE_ANNOUNCE_CC   = gnome-announce-list@gnome.org

RELEASE_DOWNLOAD_URL = https://download.gnome.org/sources/clutter

RELEASE_DOC_URL = https://developer.gnome.org
REFERENCE_DOC_URL = $(RELEASE_DOC_URL)/clutter
COOKBOOK_DOC_URL = $(RELEASE_DOC_URL)/clutter-cookbook

BUGS_URL = https://bugzilla.gnome.org/enter_bug.cgi?product=clutter

tar_file    = $(distdir).tar.xz
sha256_file = $(distdir).sha256sum

$(sha256_file): $(tar_file)
	$(AM_V_GEN)sha256sum $^ > $@

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 "  TAG      Tagging release $(CLUTTER_VERSION)..." ; \
	    $(top_srcdir)/build-aux/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

release-check: release-verify-even-micro release-verify-sane-changelogs release-verify-news
	TAR_OPTIONS="$(TAR_OPTIONS)" $(MAKE) $(AM_MAKEFLAGS) distcheck

release-verify-news:
	@echo -n "  CHK      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."

release-verify-sane-changelogs: changelogs
	@echo -n "  CHK      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 "  CHK      Checking that $(VERSION) has an even micro component..."
	@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)
	@echo "Good."

release-upload: $(sha256_file)
	@echo -n "  SCP      Uploading to master.gnome.org... "
	@scp $(tar_file) master.gnome.org:
	@echo "Done."
	@echo -n "  EXEC     Running ftpadmin install... "
	@ssh master.gnome.org ftpadmin install $(tar_file)
	@mv -f $(sha256_file) $(top_builddir)/build-aux/$(sha256_file)
	@echo "Done."

release-message:
	@echo "     Release URL: $(RELEASE_URL)/$(tar_file)"
	@echo "Release checksum: $(RELEASE_URL)/$(sha256_file)"
	@echo "Send an email to: $(RELEASE_ANNOUNCE_LIST)"
	@echo "              Cc: $(RELEASE_ANNOUNCE_CC)"
	@echo "         Subject: ANNOUNCE: Clutter $(CLUTTER_VERSION) ($(CLUTTER_RELEASE_STATUS))"
	@echo "        Contents:"
	@echo "--- CUT HERE ---"
	@echo "Good news, everyone!"
	@echo ""
	@echo "A new Clutter $(CLUTTER_RELEASE_STATUS) is now available at:"
	@echo ""
	@echo "  $(RELEASE_DOWNLOAD_URL)/$(CLUTTER_MAJOR_VERSION).$(CLUTTER_MINOR_VERSION)/"
	@echo ""
	@echo "SHA256 Checksum:"
	@echo ""
	@cat $(top_builddir)/build-aux/$(sha256_file)
	@echo ""
	@echo "Additionally, a git clone of the source tree:"
	@echo "  git clone git://git.gnome.org/clutter"
	@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 "Clutter is a library for creating compelling, dynamic, and portable graphical"
	@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@"
	@echo "  Cogl ≥ @COGL_REQ_VERSION@"
	@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"
	@echo "the README file included in the release."
	@echo ""
	@echo "Documentation:"
	@if test "x$(CLUTTER_RELEASE_STATUS)" = "xsnapshot"; then \
	   echo "   Clutter: $(REFERENCE_DOC_URL)/unstable/"; \
	 else \
	   echo "   Clutter: $(REFERENCE_DOC_URL)/stable/"; \
	 fi
	@echo "  Cookbook: $(COOKBOOK_DOC_URL)/$(CLUTTER_MAJOR_VERSION).$(CLUTTER_MINOR_VERSION)/"
	@echo ""
	@echo "Release Notes:"
	@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
	@echo "  - This version is API and ABI compatible with the previous stable"
	@echo "    release of Clutter."
	@echo "  - Installing the contents of this release will overwrite the files"
	@echo "    from the installation of the previous release of Clutter."
	@echo "  - Bugs should be reported on the Clutter Bugzilla product, at:"
	@echo "    ${BUGS_URL}"
	@echo ""
	@$(SED) -n '1bend;/^Clutter /q;:end;2,$$p' $(top_srcdir)/NEWS | $(GREP) -v '^======'
	@echo ""
	@echo "Have fun with Clutter!"
	@echo "--- CUT HERE ---"

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