summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-08-06 14:53:35 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-08-06 14:53:35 +0100
commit3a6dc5b029bb2ffba938cac9cd5d27c99d8be09c (patch)
treef6c252b5f1e13fb044fd0a45f181b82ccc24b9bc
parent0c79dc0089e2783e6f5e9ee5c28556e2b5f8b87c (diff)
Add telepathy.am so we can do make maintainer-upload-release
-rw-r--r--Makefile.am1
-rw-r--r--tools/Makefile.am3
-rw-r--r--tools/telepathy.am39
3 files changed, 42 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index baab706..3997cc3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,3 +5,4 @@ SUBDIRS = tools extensions src data m4 tests
EXTRA_DIST = autogen.sh
include tools/lcov.am
+include tools/telepathy.am
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 4b14f39..2b1b1b2 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -8,7 +8,8 @@ EXTRA_DIST = \
glib-signals-marshal-gen.py \
identity.xsl \
libglibcodegen.py \
- libtpcodegen.py
+ libtpcodegen.py \
+ telepathy.am
CLEANFILES = *.pyc *.pyo
diff --git a/tools/telepathy.am b/tools/telepathy.am
new file mode 100644
index 0000000..6e11fc6
--- /dev/null
+++ b/tools/telepathy.am
@@ -0,0 +1,39 @@
+## Useful top-level Makefile.am snippets for Telepathy projects.
+
+dist-hook:
+ chmod u+w ${distdir}/ChangeLog
+ if test -d ${top_srcdir}/.git; then \
+ git log --date=iso $(CHANGELOG_RANGE) > ${distdir}/ChangeLog; \
+ fi
+
+distcheck-hook:
+ @test "z$(CHECK_FOR_UNRELEASED)" = z || \
+ case @VERSION@ in \
+ *.*.*.*) ;; \
+ *) \
+ if grep -r UNRELEASED $(CHECK_FOR_UNRELEASED); \
+ then \
+ echo "^^^ This is meant to be a release, but some files say UNRELEASED" >&2; \
+ exit 2; \
+ fi \
+ ;; \
+ esac
+
+maintainer-upload-release: _maintainer-upload-release
+
+_maintainer-upload-release-check:
+ @case @VERSION@ in \
+ (*.*.*.*) \
+ echo "@VERSION@ is not a release" >&2; \
+ exit 2; \
+ ;; \
+ esac
+ test -f @PACKAGE@-@VERSION@.tar.gz
+ test -f @PACKAGE@-@VERSION@.tar.gz.asc
+ gpg --verify @PACKAGE@-@VERSION@.tar.gz.asc
+
+_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
+
+## vim:set ft=automake: