From 974a8c152bf7c9a4a5ce3c45808af65657c2ff1f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Feb 2018 12:44:06 +0200 Subject: Add --for|-f option to pkg-update and pkg-build This allows executing build2 -for-X operations (e.g., update-for-install or update-for-test) in order to minimize the amount of stuff to be updated. --- bpkg/pkg-update.cli | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bpkg/pkg-update.cli') diff --git a/bpkg/pkg-update.cli b/bpkg/pkg-update.cli index 7922a34..1478963 100644 --- a/bpkg/pkg-update.cli +++ b/bpkg/pkg-update.cli @@ -21,7 +21,8 @@ namespace bpkg The \cb{pkg-update} command updates the previously configured (via \l{bpkg-pkg-build(1)} or \l{bpkg-pkg-configure(1)}) package. Underneath, - this command doesn't do much more than run \cb{b update}. + this command doesn't do much more than run \cb{b update} (or one of its + \c{update-for-*} variants; see \cb{--for|-f}). Additional command line variables (, normally \cb{config.*}) can be passed to the build system by either specifying them before the packages, @@ -32,5 +33,13 @@ namespace bpkg class pkg_update_options: configuration_options { "\h|PKG-UPDATE OPTIONS|" + + string --for|-f + { + "", + "Instead of the default \cb{update} build system operation, perform the + \cb{update-for-} variant where is normally + \cb{install} or \cb{test}." + } }; } -- cgit v1.1