3 # This programme turns the ChangeLog into changelog.html for display
4 # on the website. That lives at http://zsh.sunsite.dk/Etc/changelog.html.
6 my $out = "changelog.html";
8 open CL
, "ChangeLog" or die "No ChangeLog --- run in top level directory.\n";
11 die "Will not overwrite existing $out. Delete by hand.\n";
18 /^\d+/ and $changes++;
19 if (/version\.mk.*version\s+(\d+(\.\d+)*(-\S+)?)/i) {
26 if (defined $version) {
27 warn "Outputting changelog.html for version \"$version\".\n";
29 warn "WARNING: there are changes since this version.\n";
33 warn "WARNING: no version found. Set by hand\n";
38 open NEW
, ">changelog.html";
43 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
46 <title>ChangeLog for zsh version $version</title>
49 <h1>ChangeLog for zsh version $version</h1>
61 my $now = gmtime(time);
66 Automatically generated from ChangeLog at $now