mirror of
https://github.com/bitcoin/bips.git
synced 2026-03-09 15:53:54 +00:00
process: Remove Comments-URI and -Summary
```
sed -i '0,/Comments-Summary/{/Comments-Summary/d}' bip-0*md
sed -i '0,/Comments-Summary/{/Comments-Summary/d}' bip-0*mediawiki
sed -i '0,/Comments-URI/{/Comments-URI/d}' bip-0*md
sed -i '0,/Comments-URI/{/Comments-URI/d}' bip-0*mediawiki
```
Then reset the BIPs with non-empty comment wikis:
- bip-0037.mediawiki
- bip-0038.mediawiki
- bip-0039.mediawiki
- bip-0042.mediawiki
- bip-0044.mediawiki
- bip-0047.mediawiki
- bip-0049.mediawiki
- bip-0060.mediawiki
- bip-0061.mediawiki
- bip-0074.mediawiki
- bip-0075.mediawiki
- bip-0077.md
- bip-0084.mediawiki
- bip-0090.mediawiki
- bip-0118.mediawiki
- bip-0125.mediawiki
- bip-0150.mediawiki
- bip-0151.mediawiki
- bip-0152.mediawiki
- bip-0171.mediawiki
- bip-0172.mediawiki
- bip-0173.mediawiki
- bip-0174.mediawiki
- bip-0176.mediawiki
- bip-0178.mediawiki
- bip-0199.mediawiki
- bip-0322.mediawiki
- bip-0340.mediawiki
- bip-0341.mediawiki
This commit is contained in:
@@ -9,7 +9,6 @@ my %RequiredFields = (
|
||||
BIP => undef,
|
||||
Title => undef,
|
||||
Author => undef,
|
||||
'Comments-URI' => undef,
|
||||
Status => undef,
|
||||
Type => undef,
|
||||
Created => undef,
|
||||
@@ -30,6 +29,7 @@ my %EmailField = (
|
||||
Editor => undef,
|
||||
);
|
||||
my %MiscField = (
|
||||
'Comments-URI' => undef,
|
||||
'Comments-Summary' => undef,
|
||||
'Discussions-To' => undef,
|
||||
'Discussion' => undef,
|
||||
@@ -189,7 +189,7 @@ while (++$bipnum <= $topbip) {
|
||||
die "Unacceptable license $val in $fn" unless exists $AcceptableLicenses{$val} or ($val eq 'PD' and exists $GrandfatheredPD{$bipnum});
|
||||
}
|
||||
} elsif ($field eq 'Comments-URI') {
|
||||
if (not $found{'Comments-URI'}) {
|
||||
if ($found{'Comments-URI'}) {
|
||||
my $first_comments_uri = sprintf('https://github.com/bitcoin/bips/wiki/Comments:BIP-%04d', $bipnum);
|
||||
die "First Comments-URI must be exactly \"$first_comments_uri\" in $fn" unless $val eq $first_comments_uri;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user