aboutsummaryrefslogtreecommitdiffstats
path: root/page
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2009-12-06 13:40:20 +0100
committerBjörn Gustavsson <[email protected]>2009-12-06 13:41:26 +0100
commit0aa5a2767f4fe5aed65a289253b7eff1faf0d48c (patch)
tree86a9e33d4204d59ee72d7884576804ff62bec013 /page
parent4cc8a7f16516ceb1e847100e7ca43ffcfd2c5520 (diff)
downloadotp-0aa5a2767f4fe5aed65a289253b7eff1faf0d48c.tar.gz
otp-0aa5a2767f4fe5aed65a289253b7eff1faf0d48c.tar.bz2
otp-0aa5a2767f4fe5aed65a289253b7eff1faf0d48c.zip
page: Handle new topic branches
While at it, explain the source of the comments about topic branches.
Diffstat (limited to 'page')
-rwxr-xr-xpage13
1 files changed, 10 insertions, 3 deletions
diff --git a/page b/page
index f4b065d09c..3ddda003c5 100755
--- a/page
+++ b/page
@@ -43,6 +43,9 @@ print <<"END";
</style>
<body>
<h1>$title</h1>
+<p>The comment about each topic branch is taken from the latest
+<em>What\'s cooking in erlang/otp</em> email and may no longer apply if
+the topic branch has been updated.
<ul>
END
@@ -64,9 +67,13 @@ foreach (`git log --oneline --first-parent dev..pu`) {
print "</ul>\n";
my $text = $cooking{$topic};
- $text =~ s/\n\n/$&<p>/g;
- print "<p>$text\n" if $text ne '';
- print "<p>" if $text eq '';
+ unless (defined $text) {
+ print "<p><i>New topic branch</i>\n";
+ } else {
+ $text =~ s/\n\n/$&<p>/g;
+ print "<p>$text\n" if $text ne '';
+ print "<p>" if $text eq '';
+ }
print "</li>\n";
}