pidgin: 2dda5492: Add some more code to the version-check ...

rlaager at pidgin.im rlaager at pidgin.im
Mon Aug 25 15:41:07 EDT 2008


-----------------------------------------------------------------
Revision: 2dda5492ce310300c1b45a054126b0e52e760eaf
Ancestor: 383feb3e551f15299a166f00a9e55321cb8b2628
Author: rlaager at pidgin.im
Date: 2008-08-25T19:39:00
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2dda5492ce310300c1b45a054126b0e52e760eaf

Modified files:
        Makefile.am

ChangeLog: 

Add some more code to the version-check target to test the ChangeLog files
for the appropriate version header.

-------------- next part --------------
============================================================
--- Makefile.am	5d85be05705a80284283bbbc8f6498fb194ef319
+++ Makefile.am	8a024837ee6b55b8841b01b53002dc2de5650ee5
@@ -31,7 +31,25 @@ version-check:
 #	cp libpurple/plugins/perl/common/Gaim.pm $(distdir)/libpurple/plugins/perl/common
 
 version-check:
+# We don't want to release development versions.
+	test x`echo $(PACKAGE_VERSION) | grep dev` = x
+
+# Ensure NEWS has no spaces at the start of a line.
+# Using spaces instead of tabs there is a common mistake.
+	test x`grep "^ " NEWS` = x
+
+# When doing a new minor (or major) release (X.Y.0), there must be a section in
+# ChangeLog.API.
+	echo $(PACKAGE_VERSION) | grep -v "^[0-9]\+\.[0-9]\+\.0$$" >/dev/null || head ChangeLog.API | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
+
+# For all releases, check the ChangeLogs.
+	head ChangeLog | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
+	head ChangeLog.win32 | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
+	head po/ChangeLog | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
+
+# Ensure we're working from a tag...
 	test x`mtn automate select t:v$(PACKAGE_VERSION)` = x`mtn automate get_base_revision_id`
+# ... and have no changes in the working copy.
 	test x`mtn diff | grep -v '^#'` = x
 
 release: distcheck packages


More information about the Commits mailing list