diff options
author | Björn Gustavsson <[email protected]> | 2009-12-06 13:40:20 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2009-12-06 13:41:26 +0100 |
commit | 0aa5a2767f4fe5aed65a289253b7eff1faf0d48c (patch) | |
tree | 86a9e33d4204d59ee72d7884576804ff62bec013 /page | |
parent | 4cc8a7f16516ceb1e847100e7ca43ffcfd2c5520 (diff) | |
download | otp-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-x | page | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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"; } |