From: Harlan Stenn Date: Tue, 14 Jun 2016 05:56:12 +0000 (+0000) Subject: git author attribution cleanup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5e558e3b598b316d9a43e2885c81ad61a3418e4;p=thirdparty%2Fntp.git git author attribution cleanup bk: 575f9c7cOKPEjqhZ0eNdvEH6IrVjew --- diff --git a/ChangeLog b/ChangeLog index 0805467dc..4f025991f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ --- + +* git author attribution cleanup +--- (4.2.8p8) 2016/06/02 Released by Harlan Stenn * [Sec 3042] Broadcast Interleave. HStenn. diff --git a/scripts/build/genAuthors.in b/scripts/build/genAuthors.in index f0e49c587..a5a15e127 100644 --- a/scripts/build/genAuthors.in +++ b/scripts/build/genAuthors.in @@ -34,21 +34,23 @@ use warnings; my $bk_u = "bk changes -and:USER: | sort -u |"; chomp(my $bk_root = `bk root`); -my $A_path = "$bk_root/BitKeeper/etc/authors.txt"; +my $A_dir = "$bk_root/BitKeeper/etc/Authors"; +my $A_file = "$bk_root/BitKeeper/etc/authors.txt"; my %authors; my $problem = 0; -die "bkroot: <$bk_root>, A_path: <$A_path>\n" if (! -r $A_path); +die "bkroot: <$bk_root>, A_dir: <$A_dir>\n" if (! -r $A_dir); +die "bkroot: <$bk_root>, A_file: <$A_file>\n" if (! -r $A_file); # Process the authors.txt file -open(my $FILE, '<', $A_path) or die "Could not open <$A_path>: $!\n"; +open(my $FILE, '<', $A_file) or die "Could not open <$A_file>: $!\n"; while (<$FILE>) { chomp; if (/^([\S]+) = ([\V]+) <([\w.-]+\@[\w.-]+)>$/) { # print "Got '$1 = $2 <$3>'\n"; $authors{$1} = ""; } else { - print "In $A_path: unrecognized line: '$_'\n"; + print "In $A_file: unrecognized line: '$_'\n"; $problem = 1; } } @@ -69,7 +71,7 @@ while () { if (!defined($authors{$Name})) { $problem = 1; print "<$Name> is not a defined author!\n"; - open(my $FILE, '>>', "$A_path/$name.txt") || die "Cannot create '$A_path/$name.txt': $!\n"; + open(my $FILE, '>>', "$A_dir/$name.txt") || die "Cannot create '$A_dir/$name.txt': $!\n"; print $FILE "$Name = \n"; close($FILE); }