From 13c4e508a0cfb70e2a6eba387468942e45871132 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 18 Feb 2020 13:11:29 +0200 Subject: Add AUTHORS to buildfile doc{} list in bdep-new --- bdep/new.cxx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 license_e; // Extracted license id. optional license_f; // LICENSE file path. optional copyright_f; // COPYRIGHT file path. + optional 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; -- cgit v1.1