[Telepathy-commits] [telepathy-idle/master] Generate ChangeLog for tarball releases
Jonathon Jongsma
jonathon.jongsma at collabora.co.uk
Wed Feb 18 12:00:13 PST 2009
Stole the changelog-generating machinery from gabble. This also gives the
maintainer-upload-release target for free as well.
---
Makefile.am | 2 ++
tools/telepathy.am | 27 +++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
create mode 100644 tools/telepathy.am
diff --git a/Makefile.am b/Makefile.am
index 85b8107..9742752 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,3 +6,5 @@ check-twisted : all
$(MAKE) -C tests/twisted check-twisted
check-all: check check-twisted
+
+include tools/telepathy.am
diff --git a/tools/telepathy.am b/tools/telepathy.am
new file mode 100644
index 0000000..d061b89
--- /dev/null
+++ b/tools/telepathy.am
@@ -0,0 +1,27 @@
+## 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 --stat > ${distdir}/ChangeLog || \
+ git log > ${distdir}/ChangeLog; \
+ fi
+
+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 at -@VERSION at .tar.gz
+ test -f @PACKAGE at -@VERSION at .tar.gz.asc
+ gpg --verify @PACKAGE at -@VERSION at .tar.gz.asc
+
+_maintainer-upload-release: _maintainer-upload-release-check
+ rsync -vzP @PACKAGE at -@VERSION at .tar.gz telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE at -@VERSION at .tar.gz
+ rsync -vzP @PACKAGE at -@VERSION at .tar.gz.asc telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE at -@VERSION at .tar.gz.asc
+
+## vim:set ft=automake:
--
1.5.6.5
More information about the telepathy-commits
mailing list