aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-15 06:52:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-15 06:52:40 +0200
commitfec61ff1452369badcad35727aeb16ade2c1320a (patch)
tree6c3595ebc71929e8c8189004ec9008ce4343623b
parent1b9d3d75c4e853ae5a10c93a7a2ff5cc971ae8bc (diff)
Minor tweaks to [PACKAGE-]README.md generated by bdep-new
-rw-r--r--bdep/new.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 3bd0885..139fe17 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -318,7 +318,7 @@ namespace bdep
<< '\n'
<< "## Usage" << '\n'
<< '\n'
- << "To start using this library in your project, add the following `depends`" << '\n'
+ << "To start using `" << p << "` in your project, add the following `depends`" << '\n'
<< "value to your `manifest`, adjusting the version constraint as appropriate:" << '\n'
<< '\n'
<< "```" << '\n'
@@ -387,10 +387,13 @@ namespace bdep
}
os << '\n'
+ << "Note that the `" << p << "` executable in this package provides `build2` metadata." << '\n';
+
+ os << '\n'
<< '\n'
<< "## Usage" << '\n'
<< '\n'
- << "To start using this executable in your project, add the following build-time" << '\n'
+ << "To start using `" << p << "` in your project, add the following build-time" << '\n'
<< "`depends` value to your `manifest`, adjusting the version constraint as" << '\n'
<< "appropriate:" << '\n'
<< '\n'
@@ -401,10 +404,8 @@ namespace bdep
<< "Then import the executable in your `buildfile`:" << '\n'
<< '\n'
<< "```" << '\n'
- << "import <TARGET> = " << p << "%exe{<TARGET>}" << '\n'
- << "```" << '\n'
- << '\n'
- << "Note that the `<TARGET>` executable provides `build2` metadata." << '\n';
+ << "import! [metadata] <TARGET> = " << p << "%exe{<TARGET>}" << '\n'
+ << "```" << '\n';
os << '\n'
<< '\n'