aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-10-20 21:53:54 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-10-20 21:53:54 -0400
commit471b4d509234cbcbd4a1cd45d48fe10efcc2bcf1 (patch)
tree3332151791a0ae19be286d74d89365e6af1d5f7b /scripts
parent902b6dcd6c45fef7c23190f19eba361e6b61a8bc (diff)
handle mark's first commits before he configured his id
Diffstat (limited to 'scripts')
-rw-r--r--scripts/eigen_gen_credits.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/scripts/eigen_gen_credits.cpp b/scripts/eigen_gen_credits.cpp
index 086548e26..d7a625d47 100644
--- a/scripts/eigen_gen_credits.cpp
+++ b/scripts/eigen_gen_credits.cpp
@@ -13,10 +13,24 @@ using namespace std;
std::string contributor_name(const std::string& line)
{
string result;
+
+ // let's first take care of the case of isolated email addresses, like
+ // "user@localhost.localdomain" entries
+ if(line.find("markb@localhost.localdomain") != string::npos)
+ {
+ return "Mark Borgerding";
+ }
+
+ // from there on we assume that we have a entry of the form
+ // either:
+ // Bla bli Blurp
+ // or:
+ // Bla bli Blurp <bblurp@email.com>
+
size_t position_of_email_address = line.find_first_of('<');
if(position_of_email_address != string::npos)
{
- // there is an e-mail address.
+ // there is an e-mail address in <...>.
// Hauke once committed as "John Smith", fix that.
if(line.find("hauke.heibel") != string::npos)
@@ -29,7 +43,7 @@ std::string contributor_name(const std::string& line)
}
else
{
- // there is no e-mail address.
+ // there is no e-mail address in <...>.
if(line.find("convert-repo") != string::npos)
result = "";