aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-04 13:17:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-04 13:17:58 +0200
commita32bb933ce44508c43d4579ee8a971d324eb1963 (patch)
treeb8a17c5062d6602c88c64f2f635a7eb9f5e82bc2
parentf4c9655464c6f47a693c18cddf497dfd691c661e (diff)
Various cleanups in new command
-rw-r--r--bdep/new.cxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 5306b94..68b6778 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -133,23 +133,22 @@ namespace bdep
<< "url: https://example.org/" << n << endl
<< "email: you@example.org" << endl
<< "depends: * build2 >= 0.7.0-" << endl
- << "depends: * bpkg >= 0.7.0-" << endl;
- if (t == type::exe)
- os << "#depends: libhello >= 1.0.0" << endl;
+ << "depends: * bpkg >= 0.7.0-" << endl
+ << "#depends: libhello ^1.0.0" << endl;
os.close ();
// repositories.manifest
//
os.open (f = prj / "repositories.manifest");
os << ": 1" << endl
- << "# To add a repository for a dependency, uncomment the" << endl
- << "# next four lines and specify its location." << endl
+ << "summary: " << n << " project repository" << endl
+ << "#:" << endl
<< "#role: prerequisite" << endl
- << "#location: ..." << endl
- << "#" << endl
+ << "#location: https://pkg.cppget.org/1/stable" << endl
+ << "#trust: ..." << endl
<< "#:" << endl
- << "role: base" << endl
- << "summary: " << n << " project repository" << endl;
+ << "#role: prerequisite" << endl
+ << "#location: https://git.build2.org/hello/libhello.git" << endl;
os.close ();
// build/
@@ -225,7 +224,7 @@ namespace bdep
os << endl
<< "# Don't install tests." << endl
<< "#" << endl
- << "dir{tests/}: install = false" << endl;
+ << "tests/: install = false" << endl;
os.close ();
// .gitignore
@@ -665,7 +664,7 @@ namespace bdep
// build/export.build
//
os.open (f = bd / "export.build");
- os << "$out_root/:" << endl
+ os << "$out_root/" << endl
<< "{" << endl
<< " include " << n << "/" << endl
<< "}" << endl