Set copyright holders displayed in notices separately from the package name

This helps avoid accidental removal of upstream copyright names
This commit is contained in:
Luke Dashjr
2015-12-22 12:29:13 +00:00
parent c39a6fffd7
commit 917b1d03cf
9 changed files with 22 additions and 5 deletions

View File

@@ -834,3 +834,10 @@ int GetNumCores()
#endif
}
std::string CopyrightHolders()
{
std::string strCopyrightHolders = _(COPYRIGHT_HOLDERS);
if (strCopyrightHolders.find("%s") == strCopyrightHolders.npos)
return strCopyrightHolders;
return strprintf(strCopyrightHolders, _(PACKAGE_NAME));
}