Skip to content

Commit 63ed112

Browse files
committed
rc: link the commit for each rc
Also separate each RC somewhat Fixes curl/curl#16776
1 parent ac9af3a commit 63ed112

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

rc/_index.html

-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
<p> <b>docs/RELEASE-TOOLS.md</b> in the tarball shows the tooling needed to
5353
reproduce it.
5454

55-
<p> <b>docs/tarball-commit.txt</b> in the tarball shows the exact commit hash
56-
that was the HEAD at the time the tarball was made. There are no git tags
57-
set for release candidates.
58-
5955
SUBTITLE(Release cycle)
6056
<p>
6157
The idea is to provide three release candidates before every release,

rc/mkindex.pl

+19-7
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,19 @@ sub filetime {
3232
my $file = $_;
3333
if($file =~ /^curl-(\d+)\.(\d+)\.(\d+)-rc([0-9])\.(tar.gz|tar.bz2|tar.xz|zip)\z/) {
3434
my ($major, $minor, $patch, $rc, $ext)=($1, $2, $3, $4, $5);
35-
$lookup{$file} = "$major-$minor-$patch-$rc-$ext";
3635
$sort{$file} = $major * 1000000 + $minor * 10000 + $patch * 100 + $rc;
3736
push @rc, $file;
37+
38+
# track each rc available
39+
$filever{$file} = "$major.$minor.$patch-rc$rc";
3840
}
3941
}
4042

4143
if($rc[0]) {
44+
my $oldver = "nada";
4245

4346
print <<MOO
4447
<table class="daily" cellspacing="0" cellpadding="8">
45-
<tr class="tabletop">
46-
<th>file</th>
47-
<th>date</th>
48-
<th>size</th>
49-
<th>signature</th>
50-
</tr>
5148
MOO
5249
;
5350

@@ -60,12 +57,27 @@ sub filetime {
6057
$gpg="<a href=\"$f.asc\">GPG</a>";
6158
}
6259
my $fsize = filesize("$f");
60+
61+
if($oldver ne $filever{$f} ) {
62+
$oldver = $filever{$f};
63+
my $commit;
64+
if(-e "curl-$oldver.commit") {
65+
# commit hhash
66+
open(H, "<curl-$oldver.commit");
67+
my @ha = <H>;
68+
close(H);
69+
my $hash = join(//, @ha);
70+
$commit=" (<a href=\"https://github.com/curl/curl/commit/$hash\">commit</a>)";
71+
}
72+
print "<tr><td colspan=4><b> $oldver </b>$commit</td></tr>\n";
73+
}
6374
print "<tr>\n";
6475
printf "<td> <a href=\"$f\">$f</a> </td> <td>$d</td> <td>%.1f MB</td> <td> $gpg </td>\n",
6576
$fsize / (1024*1024);
6677
print "</tr>\n";
6778
}
6879
print "</table>\n";
80+
6981
}
7082
else {
7183
print "<p>There are no available release candidates for the moment."

0 commit comments

Comments
 (0)