aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-06-07 23:49:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-06-07 23:50:00 +0200
commitd2fc8b4a5f53ce638cacae56375b120c0a687978 (patch)
tree6c42a8fcbe13c9337ecdf3cd26e276288418e42a
parent04ca9aecd1a6b32c5e81885f7f1e99d30d6d8ec3 (diff)
log2changes.pl: fix the Version output
Previously it could easily wrongly get repeated
-rwxr-xr-xlog2changes.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/log2changes.pl b/log2changes.pl
index a92d939b3..667daabf0 100755
--- a/log2changes.pl
+++ b/log2changes.pl
@@ -35,8 +35,6 @@ while(<STDIN>) {
if ($ref =~ /refs\/tags\/curl-([0-9_]*)/) {
$tag = $1;
$tag =~ tr/_/./;
- } else {
- $tag = '';
}
}
elsif($l =~ /^Author: *(.*) +</) {
@@ -54,6 +52,7 @@ while(<STDIN>) {
# Version entries have a special format
print "\nVersion " . $tag." ($date)\n";
$oldc = "";
+ $tag = "";
}
if($a ne $c) {
$extra=sprintf("\n- [%s brought this change]\n\n ", $a);