diff options
-rw-r--r-- | bdep/new.cxx | 16 |
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; |