summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-12-10 17:07:31 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-12-10 17:07:31 +0000
commitd0122748651ba8390a49fa81cb2ef771720a5645 (patch)
tree41fafd27a29230360430b26ecdb2ee7a20f34f64 /tools
parente52ed524f5316370fc5630f90dfac2d32d1a65ed (diff)
Update telepathy.am from telepathy-glib
Diffstat (limited to 'tools')
-rw-r--r--tools/telepathy.am42
1 files changed, 36 insertions, 6 deletions
diff --git a/tools/telepathy.am b/tools/telepathy.am
index 6e11fc6..9715026 100644
--- a/tools/telepathy.am
+++ b/tools/telepathy.am
@@ -9,7 +9,7 @@ dist-hook:
distcheck-hook:
@test "z$(CHECK_FOR_UNRELEASED)" = z || \
case @VERSION@ in \
- *.*.*.*) ;; \
+ *.*.*.*|*+) ;; \
*) \
if grep -r UNRELEASED $(CHECK_FOR_UNRELEASED); \
then \
@@ -19,15 +19,39 @@ distcheck-hook:
;; \
esac
-maintainer-upload-release: _maintainer-upload-release
-
-_maintainer-upload-release-check:
+_is-release-check:
@case @VERSION@ in \
- (*.*.*.*) \
- echo "@VERSION@ is not a release" >&2; \
+ (*.*.*.*|*+) \
+ echo "Hey! @VERSION@ is not a release!" >&2; \
exit 2; \
;; \
esac
+ @if ! git diff --no-ext-diff --quiet --exit-code; then \
+ echo "Hey! Your tree is dirty! No release for you." >&2; \
+ exit 2; \
+ fi
+ @if ! git diff --cached --no-ext-diff --quiet --exit-code; then \
+ echo "Hey! You have changes staged! No release for you." >&2; \
+ exit 2; \
+ fi
+
+%.tar.gz.asc: %.tar.gz
+ $(AM_V_GEN)gpg --detach-sign --armor $@
+
+@PACKAGE@-@VERSION@.tar.gz: _is-release-check check distcheck
+
+maintainer-prepare-release: _is-release-check check distcheck release-mail
+ git tag -s @PACKAGE@-@VERSION@ -m @PACKAGE@' '@VERSION@
+ gpg --detach-sign --armor @PACKAGE@-@VERSION@.tar.gz
+
+release-mail: NEWS
+ $(AM_V_GEN)(python $(top_srcdir)/tools/make-release-mail.py \
+ @PACKAGE@ @VERSION@ $(top_srcdir)/NEWS > $@.tmp && \
+ mv $@.tmp $@)
+
+maintainer-upload-release: _maintainer-upload-release
+
+_maintainer-upload-release-check: _is-release-check
test -f @PACKAGE@-@VERSION@.tar.gz
test -f @PACKAGE@-@VERSION@.tar.gz.asc
gpg --verify @PACKAGE@-@VERSION@.tar.gz.asc
@@ -36,4 +60,10 @@ _maintainer-upload-release: _maintainer-upload-release-check
rsync -vzP @PACKAGE@-@VERSION@.tar.gz telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz
rsync -vzP @PACKAGE@-@VERSION@.tar.gz.asc telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz.asc
+maintainer-make-release: maintainer-prepare-release maintainer-upload-release
+ @echo "Now:"
+ @echo " • bump the nano-version;"
+ @echo " • push the branch and tags upstream; and"
+ @echo " • send release-mail to <telepathy@lists.freedesktop.org>."
+
## vim:set ft=automake: