[telepathy-glib/master] Check for files saying UNRELEASED during distcheck

Will Thompson will.thompson at collabora.co.uk
Mon Dec 28 05:51:03 PST 2009


Reference fd.o#23848, and showed up a couple of UNRELEASED that slipped
into releases!
---
 Makefile.am        |    2 ++
 tools/telepathy.am |   12 ++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 5d2f606..0dd0366 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,4 +32,6 @@ upload-branch-docs: all
 include tools/lcov.am
 
 CHANGELOG_RANGE = telepathy-glib-0.6.0..
+CHECK_FOR_UNRELEASED = $(srcdir)/NEWS $(wildcard $(srcdir)/telepathy-glib/*.[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