masqmail

view misc/list-versions @ 216:84bf7a6b6ccd

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
children
line source
1 #!/bin/sh
2 #
3 # list the version numbers in several important files
4 # run this script before generating a release
6 (
7 grep '^AC_INIT' /dev/null configure.*
8 printf "Changelog:"
9 sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' ChangeLog
10 printf "NEWS:"
11 sed -n '/^[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}/{p;q}' NEWS
12 grep '^\.TH' /dev/null man/*.[0-9]
13 ) | sed 's~\([^:]*\):.*\([0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}\).*~\2 \1~'