aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-16 16:58:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-16 16:58:31 +0200
commitc02d4eeb02c06dcd0e3340bb3681f250d468922d (patch)
treefd2c87baa9604f832546929eab5f726bd23d2958
parent12857770f878e385e83cb76e39e2f99a09d1b043 (diff)
Generate template repositories.manifest in new command
-rw-r--r--bdep/new.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 7d7b9ec..550acac 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -94,6 +94,20 @@ namespace bdep
<< "depends: * bpkg >= 0.7.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
+ << "#role: prerequisite" << endl
+ << "#location: ..." << endl
+ << "#" << endl
+ << "#:" << endl
+ << "role: base" << endl
+ << "summary: " << n << " project repository" << endl;
+ os.close ();
+
// build/
//
dir_path bd (dir_path (prj) /= "build");