aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-26 07:53:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-26 07:53:21 +0200
commit625f58abc0fec99f4a4e3556257a743775e3c6fe (patch)
tree83bdef567294ce846f4ec3a39bca29f6e8525c82
parent288697159d3e5d0de49da1199c194a399b3041b7 (diff)
Rely on new header pre-generation in bdep-new
Also bump the build2 version requirement to 0.15.0-.
-rw-r--r--bdep/new.cxx36
1 files changed, 2 insertions, 34 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index f8cf05e..ff3c0c9 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1492,8 +1492,8 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
os << "url: https://example.org/" << (pn ? pn->string () : n) << '\n'
<< "email: " << pe << '\n'
<< "#build-error-email: " << pe << '\n'
- << "depends: * build2 >= 0.14.0" << '\n'
- << "depends: * bpkg >= 0.14.0" << '\n'
+ << "depends: * build2 >= 0.15.0-" << '\n'
+ << "depends: * bpkg >= 0.15.0-" << '\n'
<< "#depends: libhello ^1.0.0" << '\n';
os.close ();
}
@@ -2421,25 +2421,9 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
<< "./: $pub_hdrs" << '\n';
}
- // @@ TMP: enable before 0.15.0 release (also update toolchain
- // requirements in manifest). Also below.
- //
if (ver)
-#if 0
os << '\n'
<< hg << "{version}: in{version} $src_root/manifest" << '\n';
-#else
- os << '\n'
- << "# Include the generated version header into the distribution (so that we don't" << '\n'
- << "# pick up an installed one) and don't remove it when cleaning in src (so that" << '\n'
- << "# clean results in a state identical to distributed)." << '\n'
- << "#" << '\n'
- << hg << "{version}: in{version} $src_root/manifest" << '\n'
- << "{" << '\n'
- << " dist = true" << '\n'
- << " clean = ($src_root != $out_root)" << '\n'
- << "}" << '\n';
-#endif
if (!exph.empty ())
os << '\n'
@@ -2636,25 +2620,9 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
os << "}" << '\n';
}
- // @@ TMP: enable before 0.15.0 release (also update toolchain
- // requirements in manifest). Also above.
- //
if (ver && !split)
-#if 0
os << '\n'
<< hg << "{version}: in{version} $src_root/manifest" << '\n';
-#else
- os << '\n'
- << "# Include the generated version header into the distribution (so that we don't" << '\n'
- << "# pick up an installed one) and don't remove it when cleaning in src (so that" << '\n'
- << "# clean results in a state identical to distributed)." << '\n'
- << "#" << '\n'
- << hg << "{version}: in{version} $src_root/manifest" << '\n'
- << "{" << '\n'
- << " dist = true" << '\n'
- << " clean = ($src_root != $out_root)" << '\n'
- << "}" << '\n';
-#endif
if (!exph.empty () && !split)
os << '\n'