diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-29 08:55:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-29 08:55:05 +0200 |
commit | bde7128035080e5618aa4a09d398ec94761fd3ea (patch) | |
tree | 98f2c2a56a26ff89d0ffb52df00ea12bd7661ec5 | |
parent | 868b8b6de1440fba557fcce2f2a010a6360a8d01 (diff) |
Add for now disabled support for doc/legal split in bdep-new
-rw-r--r-- | bdep/new.cxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx index 7f9dfc1..185274e 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -1282,6 +1282,7 @@ namespace bdep open (out / buildfile_file); os << "./: {*/ -" << build_dir.posix_representation () << "} "; +#if 1 // @@ TMP if (readme_f || license_f || copyright_f || authors_f) { auto write = [&os, &out, s = ""] (const path& f) mutable @@ -1297,6 +1298,37 @@ namespace bdep if (authors_f) write (*authors_f); os << "} "; } +#else + if (readme_f || license_f || copyright_f || authors_f) + { + const char* s; + auto write = [&os, &out, &s] (const path& f) + { + os << s << f.leaf (out).posix_representation (); + s = " "; + }; + + if (readme_f) + { + s = ""; + + os << "doc{"; + write (*readme_f); + os << "} "; + } + + if (license_f || copyright_f || authors_f) + { + s = ""; + + os << "legal{"; + if (license_f) write (*license_f); + if (copyright_f) write (*copyright_f); + if (authors_f) write (*authors_f); + os << "} "; + } + } +#endif os << "manifest" << endl; if (itest && install && t == type::lib) // Have tests/ subproject. |