view misc/list-versions @ 179:ec3fe72a3e99

Fixed an important bug with folded headers! g_strconcat() returns a *copy* of the string, but hdr->value still pointed to the old header (which probably was a memory leak, too). If the folded part had been quite small it was likely that the new string was at the same position as the old one, thus making everything go well. But if pretty long headers were folded several times it was likely that the new string was allocated somewhere else in memory, thus breaking things. In result mails to lots of recipients (folded header) were frequently only sent to the ones in the first line. Sorry for the inconvenience.
date Fri, 03 Jun 2011 09:52:17 +0200
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~'