[telepathy-gabble/master] Grab UNRELEASED-checking distcheck-hook from tp-glib
Will Thompson
will.thompson at collabora.co.uk
Mon Dec 28 06:18:30 PST 2009
Fixes: fd.o#23848
Reviewed-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
---
Makefile.am | 5 +++++
tools/telepathy.am | 12 ++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 42d5e02..93450d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,4 +19,9 @@ include tools/lcov.am
LCOV_CHECK_ARGS = CHECK_TWISTED_SLEEP=6
CHANGELOG_RANGE = telepathy-gabble-0.6.0..
+CHECK_FOR_UNRELEASED = \
+ $(srcdir)/NEWS \
+ $(wildcard $(srcdir)/gabble/*.[ch]) \
+ $(wildcard $(srcdir)/src/*.[ch])
+
include tools/telepathy.am
diff --git a/tools/telepathy.am b/tools/telepathy.am
index 3dab3e7..93b73d2 100644
--- a/tools/telepathy.am
+++ b/tools/telepathy.am
@@ -6,6 +6,18 @@ dist-hook:
git log --date=iso $(CHANGELOG_RANGE) > ${distdir}/ChangeLog; \
fi
+distcheck-hook:
+ @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:
--
1.5.6.5
More information about the telepathy-commits
mailing list