masqmail-0.2
changeset 170:0f0e4e7cd762
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.
author | meillo@marmaro.de |
---|---|
date | Mon, 19 Jul 2010 14:01:13 +0200 |
parents | fa7641eb29c7 |
children | 349518b940db |
files | misc/list-versions |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/misc/list-versions Mon Jul 19 14:01:13 2010 +0200 1.3 @@ -0,0 +1,13 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# list the version numbers in several important files 1.7 +# run this script before generating a release 1.8 + 1.9 +( 1.10 +grep '^AC_INIT' /dev/null configure.* 1.11 +printf "Changelog:" 1.12 +sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' ChangeLog 1.13 +printf "NEWS:" 1.14 +sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' NEWS 1.15 +grep '^\.TH' /dev/null man/*.[0-9] 1.16 +) | sed 's~\([^:]*\):.*\([0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}\).*~\2 \1~'