diff Makefile.am @ 23893:d64673562530

Verify monotone tag and workspace version on 'make packages'. This should be expanded to check other version strings, as well (e.g., NEWS and ChangeLog*) when people get the chance.
author Ethan Blanton <elb@pidgin.im>
date Mon, 25 Aug 2008 03:09:33 +0000
parents 111b464f6845
children 9967f971bb3f
line wrap: on
line diff
--- a/Makefile.am	Mon Aug 25 02:46:51 2008 +0000
+++ b/Makefile.am	Mon Aug 25 03:09:33 2008 +0000
@@ -30,9 +30,13 @@
 distcheck-hook: libpurple/plugins/perl/common/Purple.pm pidgin/plugins/perl/common/Pidgin.pm
 #	cp libpurple/plugins/perl/common/Gaim.pm $(distdir)/libpurple/plugins/perl/common
 
+version-check:
+	test x`mtn automate select t:v$(PACKAGE_VERSION)` = x`mtn automate get_base_revision_id`
+	test x`mtn diff | grep -v '^#'` = x
+
 release: distcheck packages
 
-packages: dist-gzip dist-bzip2
+packages: version-check dist-gzip dist-bzip2
 	gpg -ab pidgin-$(PACKAGE_VERSION).tar.gz
 	gpg -ab pidgin-$(PACKAGE_VERSION).tar.bz2
 	gpg --verify pidgin-$(PACKAGE_VERSION).tar.gz.asc pidgin-$(PACKAGE_VERSION).tar.gz