From ad257079568746d71d913c6fca96852da6fe3bd6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Jan 2016 10:04:02 +0200 Subject: Reorganize .cli files, add man/xhtml page generation (via script for now) --- bpkg/cfg-create.cli | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 bpkg/cfg-create.cli (limited to 'bpkg/cfg-create.cli') diff --git a/bpkg/cfg-create.cli b/bpkg/cfg-create.cli new file mode 100644 index 0000000..e28778e --- /dev/null +++ b/bpkg/cfg-create.cli @@ -0,0 +1,56 @@ +// file : bpkg/cfg-create.cli +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +include ; + +"\section=1" +"\name=bpkg-cfg-create" +"\summary=create configuration" + +namespace bpkg +{ + { + " ", + + "\h|SYNOPSIS| + + \c{\b{bpkg cfg-create} [] [( | )...]} + + \h|DESCRIPTION| + + The \cb{cfg-create} command creates a new \cb{bpkg} configuration with + the specified \cb{build2} modules and configuration variables. Unless + the \cb{--wipe} option is specified, \cb{cfg-create} expects the + configuration directory to be empty or to not exist (in which case it + will be created). + + By default the resulting configuration loads the \cb{config}, \cb{test}, + and \cb{install} modules. However, additional modules and, if required, + their configuration variables can be specified as the \cb{cfg-create} + arguments. For example: + + \ + bpkg cfg-create cxx config.cxx=clang++ config.install.root=/usr/local + \ + " + } + + class cfg_create_options: common_options + { + "\h|CFG-CREATE OPTIONS|" + + dir_path --directory|-d (".") + { + "", + "Create configuration in rather than in the current working + directory." + } + + bool --wipe + { + "Wipe the configuration directory clean before creating the new + configuration." + } + }; +} -- cgit v1.1