# HG changeset patch # User meillo@marmaro.de # Date 1279540873 -7200 # Node ID 0f0e4e7cd762e789a5ad5213d5ac88c5dee9d135 # Parent fa7641eb29c7684d6fc3bd96f6f525a4f07b5f06 added misc/list-versions This script helps to check if the versions numbers in the project are the same as the one for the release. This script is motivated by the 0.2.27 release in which masqmail introduces itself as being version 0.2.26. diff -r fa7641eb29c7 -r 0f0e4e7cd762 misc/list-versions --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc/list-versions Mon Jul 19 14:01:13 2010 +0200 @@ -0,0 +1,13 @@ +#!/bin/sh +# +# list the version numbers in several important files +# run this script before generating a release + +( +grep '^AC_INIT' /dev/null configure.* +printf "Changelog:" +sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' ChangeLog +printf "NEWS:" +sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' NEWS +grep '^\.TH' /dev/null man/*.[0-9] +) | sed 's~\([^:]*\):.*\([0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}\).*~\2 \1~'