aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-02-18 13:11:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-02-18 13:11:29 +0200
commit13c4e508a0cfb70e2a6eba387468942e45871132 (patch)
tree227411b58b3bced629bed695913ce27c6a87f572
parent7523d034b722baa090f3f560e9c77b483248ea4e (diff)
Add AUTHORS to buildfile doc{} list in bdep-new
-rw-r--r--bdep/new.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index bb68206..849b3d3 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -739,6 +739,7 @@ namespace bdep
optional<string> license_e; // Extracted license id.
optional<path> license_f; // LICENSE file path.
optional<path> copyright_f; // COPYRIGHT file path.
+ optional<path> authors_f; // AUTHORS file path.
{
if (!sub)
{
@@ -789,6 +790,18 @@ namespace bdep
{
copyright_f = move (f);
}
+
+ // AUTHORS
+ //
+ // Note that some projects distinguish between AUTHORS (legal names
+ // for copyright purposes) and CONTRIBUTORS (individuals that have
+ // contribute and/or are allowed to contribute to the project). It's
+ // not clear whether we should distribute/install CONTRIBUTORS.
+ //
+ if (exists ((f = out / "AUTHORS")))
+ {
+ authors_f = move (f);
+ }
}
// Merge option and existing values verifying that what already exists
@@ -1243,7 +1256,7 @@ namespace bdep
open (out / buildfile_file);
os << "./: {*/ -" << build_dir.posix_representation () << "} ";
- if (readme_f || license_f || copyright_f)
+ if (readme_f || license_f || copyright_f || authors_f)
{
auto write = [&os, &out, s = ""] (const path& f) mutable
{
@@ -1255,6 +1268,7 @@ namespace bdep
if (readme_f) write (*readme_f);
if (license_f) write (*license_f);
if (copyright_f) write (*copyright_f);
+ if (authors_f) write (*authors_f);
os << "} ";
}
os << "manifest" << endl;