Skip to content

Commit e202d33

Browse files
committed
Support suffix arg in CreateReleaseNotes step
This allows separate release notes for the PDL edition, for example.
1 parent 0f62eab commit e202d33

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Perl/Dist/Strawberry/Step/CreateReleaseNotes.pm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ sub run {
1515
my $self = shift;
1616

1717
$self->boss->message(2, "Creating Release Notes");
18+
19+
my $suffix = $self->{config}->{suffix} // '';
20+
if ($suffix) {
21+
$self->boss->message(2, "Appending suffix ${suffix}");
22+
}
1823

19-
my $html_file = catfile($self->global->{output_dir}, $self->global->{output_basename} .".html");
24+
my $html_file = catfile($self->global->{output_dir}, $self->global->{output_basename} . $suffix . ".html");
2025
my $tt_file = catfile($self->global->{dist_sharedir}, qw/extra-files release_notes.html.tt/);
2126

2227
# get release date

0 commit comments

Comments
 (0)