aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-07-16 05:52:49 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-16 15:48:26 +0300
commite8f7ad1e7d4aa47daad62105d2c41bcfd61d67e8 (patch)
tree237a538f4cf245a8d23a3e170c18c9f52767e14b
parentc00e3ee45c8d73ee9ac345febf00b752947eb3af (diff)
Enable doc{}/legal{} split in bdep-new'ed projects
-rw-r--r--bdep/new.cxx19
1 files changed, 1 insertions, 18 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index c8002ee..8a180ec 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1561,23 +1561,6 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
&os, &out,
&readme_f, &license_f, &copyright_f, &authors_f] (bool newline = false)
{
-#if 1 // @@ TMP
- if (readme_f || license_f || copyright_f || authors_f)
- {
- auto write = [&os, &out, s = ""] (const path& f) mutable
- {
- os << s << f.leaf (out).posix_representation ();
- s = " ";
- };
-
- os << "doc{";
- 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 << "} ";
- }
-#else
if (readme_f || license_f || copyright_f || authors_f)
{
const char* s;
@@ -1607,7 +1590,7 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
os << "} ";
}
}
-#endif
+
os << "manifest";
if (newline)