diff options
author | Aaron Crane <arc@cpan.org> | 2017-07-09 13:54:26 +0100 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2017-07-16 12:57:37 +0100 |
commit | 57ebedf650e9cdb33af623b093785c7ccef1e223 (patch) | |
tree | efc8851377f8119127ae70be00abd715f2ec946b | |
parent | 7c4d78796f746fb217896d9b7225d295d60e266b (diff) | |
download | perl-57ebedf650e9cdb33af623b093785c7ccef1e223.tar.gz |
Suppress irrelevant "MUST SKIP this step" RMG paragraphs
Sections that aren't relevant to the current release type are suppressed in
their entirety, so the remaining "MUST SKIP" messages are just confusing.
Remove them from the content.
-rw-r--r-- | Porting/make-rmg-checklist | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Porting/make-rmg-checklist b/Porting/make-rmg-checklist index d7a9bc4938..f116d23471 100644 --- a/Porting/make-rmg-checklist +++ b/Porting/make-rmg-checklist @@ -72,8 +72,13 @@ sub iterate_items { ITEM: foreach my $item ( @{$items} ) { foreach my $meta ( @{ $item->{'metadata'} || [] } ) { - $meta =~ /skip .+ $type/xms - and next ITEM; + if ( $meta =~ /skip .+ $type/xms ) { + next ITEM; + } + elsif ( $meta =~ /skip/xms ) { + $item->{content} =~ + s/^ [^\n]* \b MUST\ SKIP\ this\ step \b [^\n]* \n\n//xms; + } } $cb->($item); |