AUTHORS: Use LF line endings and remove BOM
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>
Mon, 7 Mar 2016 14:38:49 +0000 (14:38 +0000)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Tue, 8 Mar 2016 18:02:43 +0000 (18:02 +0000)
Change-Id: I03c582baa03238ac82916d8bf865a3bf25f04cd5
Reviewed-on: https://code.wireshark.org/review/14384
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
AUTHORS.src
tools/generate_authors.pl

index d89e4e19fdb12739da83f5c4fa739e31fc2266c9..3c9122e5ef2a319bb96ede760dfae3b3d8d1cb4a 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 Original Author
 -------- ------
index aaf207ef0a1b9d44e88643a95a5352713b51fe45..5a50c25596e41e4145fbdcb7075c356c4cd77e74 100755 (executable)
@@ -40,8 +40,6 @@ use Encode qw(encode decode);
 my $state = "";
 my %contributors = ();
 my $is_contributing = 0;
-my $crlf_find = "\n";
-my $crlf_replace = "\r\n";
 
 my $header = "
 
@@ -140,7 +138,7 @@ sub parse_git_name {
                                $ntab -= $len / 8;
                                $ntab +=1 if ($len % 8);
                                $line = $name . "\t" x $ntab . "<$email>";
-                               print encode('UTF-8', "$line\r\n");
+                               print encode('UTF-8', "$line\n");
                        }
                }
        }
@@ -151,7 +149,6 @@ sub parse_git_name {
 # MAIN
 #
 
-$header =~ s/$crlf_find/$crlf_replace/g;
 print $header;
 
 open( my $author_fh, '<', $ARGV[0] ) or die "Can't open $ARGV[0]: $!";
@@ -186,7 +183,6 @@ while ( my $line = decode('UTF-8', <$author_fh>) ) {
 }
 close $author_fh;
 
-$git_log_text =~ s/$crlf_find/$crlf_replace/g;
 print $git_log_text;
 
 # XXX open "git shortlog ... |" instead?
@@ -199,7 +195,6 @@ while ( my $git_line = decode('UTF-8', <$git_author_fh>) ) {
 }
 close $git_author_fh;
 
-$trailer =~ s/$crlf_find/$crlf_replace/g;
 print $trailer;
 
 __END__