# HG changeset patch # User meillo@marmaro.de # Date 1279540873 -7200 # Node ID 84bf7a6b6ccd1f6dd08738ad2e07a5a0e1e8f0a7 # Parent 08b32edca1d5f72f362db4b15ce5587d0a797c29 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 08b32edca1d5 -r 84bf7a6b6ccd 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~'