I'm not the biggest fan of how the info window works, but it works anyway, and it's easy to apply to *all* the download links. Also decided to sign & checksum static binaries. Those are just as important (if not more so) than the source tarballs. Yes, I did verify that my copies of all the files were still in line with the other checksums before creating the SHA256 checksums. :) And I think I'm done fiddling with the site now; This is the last of my planned changes. ...except that the site kinda sucks in text-mode browsers now. Hmm. But how do I improve that?
21 lines
599 B
Perl
Executable file
21 lines
599 B
Perl
Executable file
#!/usr/bin/perl
|
|
|
|
($project) = (shift =~ /^([^ \/]+)/);
|
|
$project = uc $project if $project eq 'tuwf';
|
|
$title = shift;
|
|
|
|
print "---\ntitle: $title\npage-type: changelog\n...\n";
|
|
|
|
for (split /\n\n/, join '', <>) {
|
|
s/^([0-9]+\.[0-9]+(?:\.[0-9]+)?)\s+-\s+([0-9]{4}-[0-9]{2}-[0-9]{2})//;
|
|
print "\n- **$1** - $2";
|
|
$dl = "$project-$1.tar.gz";
|
|
$dl = "$project-linux-amd64-$1.tar.gz" if !-f "pub/download/$dl";
|
|
print " - [$dl](/download/$dl)" if -f "pub/download/$dl";
|
|
print "\n";
|
|
|
|
for (split /\r?\n\s+-\s+/) {
|
|
s/([*_\\])/\\$1/g;
|
|
print " - $_\n" if $_;
|
|
}
|
|
}
|