mirror of
https://github.com/bitcoin/bips.git
synced 2026-11-16 19:48:35 +00:00
script, refactor: rename authors to owners where relevant
This commit is contained in:
1 parent
d853786cd8
commit
7bf26a7109
1 file changed
+8
-8
@@ -137,7 +137,7 @@ while (++$bipnum <= $topbip) {
|
||||
}
|
||||
}
|
||||
my %found;
|
||||
my ($title, $authors, $status, $version, $type, $layer);
|
||||
my ($title, $owners, $status, $version, $type, $layer);
|
||||
my ($field, $val, @field_order, $continuation);
|
||||
while (<$F>) {
|
||||
last if ($is_markdown && m[^```$]);
|
||||
@@ -169,20 +169,20 @@ while (++$bipnum <= $topbip) {
|
||||
my ($authorname, $authoremail) = ($1, $2);
|
||||
$authoremail =~ s/(?<=\D)$bipnum(?=\D)/<BIPNUM>/g;
|
||||
$emails{$authorname}->{$authoremail} = undef;
|
||||
if (defined $authors) {
|
||||
$authors .= ", $authorname";
|
||||
if (defined $owners) {
|
||||
$owners .= ", $authorname";
|
||||
} else {
|
||||
$authors = $authorname;
|
||||
$owners = $authorname;
|
||||
}
|
||||
} elsif ($field eq 'Deputies') {
|
||||
$val =~ m/^(\S[^<@>]*\S) \<([^@>]*\@[\w.-]+\.\w+)\>$/ or die "Malformed Deputies line in $fn";
|
||||
my ($deputyname, $deputyemail) = ($1, $2);
|
||||
$deputyemail =~ s/(?<=\D)$bipnum(?=\D)/<BIPNUM>/g;
|
||||
$emails{$deputyname}->{$deputyemail} = undef;
|
||||
if (defined $authors) {
|
||||
$authors .= ", $deputyname";
|
||||
if (defined $owners) {
|
||||
$owners .= ", $deputyname";
|
||||
} else {
|
||||
$authors = $deputyname;
|
||||
$owners = $deputyname;
|
||||
}
|
||||
} elsif ($field eq 'Status') {
|
||||
if ($bipnum == 38) { # HACK
|
||||
@@ -255,7 +255,7 @@ while (++$bipnum <= $topbip) {
|
||||
}
|
||||
}
|
||||
print "| ${title}\n";
|
||||
print "| ${authors}\n";
|
||||
print "| ${owners}\n";
|
||||
print "| ${type}\n";
|
||||
print "| ${status}\n";
|
||||
close $F;
|
||||
|
||||
Reference in new issue
Block a user