mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
log2changes.pl: fix the Version output
Previously it could easily wrongly get repeated
This commit is contained in:
parent
04ca9aecd1
commit
d2fc8b4a5f
@ -35,8 +35,6 @@ while(<STDIN>) {
|
|||||||
if ($ref =~ /refs\/tags\/curl-([0-9_]*)/) {
|
if ($ref =~ /refs\/tags\/curl-([0-9_]*)/) {
|
||||||
$tag = $1;
|
$tag = $1;
|
||||||
$tag =~ tr/_/./;
|
$tag =~ tr/_/./;
|
||||||
} else {
|
|
||||||
$tag = '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif($l =~ /^Author: *(.*) +</) {
|
elsif($l =~ /^Author: *(.*) +</) {
|
||||||
@ -54,6 +52,7 @@ while(<STDIN>) {
|
|||||||
# Version entries have a special format
|
# Version entries have a special format
|
||||||
print "\nVersion " . $tag." ($date)\n";
|
print "\nVersion " . $tag." ($date)\n";
|
||||||
$oldc = "";
|
$oldc = "";
|
||||||
|
$tag = "";
|
||||||
}
|
}
|
||||||
if($a ne $c) {
|
if($a ne $c) {
|
||||||
$extra=sprintf("\n- [%s brought this change]\n\n ", $a);
|
$extra=sprintf("\n- [%s brought this change]\n\n ", $a);
|
||||||
|
Loading…
Reference in New Issue
Block a user