From 148a69cc9ba39331cf2ea61a0f21691a655f2537 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 31 May 2020 08:04:10 -0500 Subject: [PATCH] Allow for new stage dirs without sub-path. It's useful to set up stage install dirs as aliases to others to allow for external overrides. This makes it possible to also have such aliases without needing to make them a sub-path of an existing dir path. --- src/tools/stage.jam | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/stage.jam b/src/tools/stage.jam index c3b471d9b..6671acc90 100644 --- a/src/tools/stage.jam +++ b/src/tools/stage.jam @@ -52,7 +52,7 @@ feature.feature install-package : : free ; #| tag::doc[] [[bbv2.reference.modules.stage.add-install-dir]] -. `rule add-install-dir ( name : suffix : parent ? : options * )` +. `rule add-install-dir ( name : suffix ? : parent ? : options * )` + Defines a named installation directory. + @@ -82,8 +82,9 @@ installs `a` into `(baz)/bar/xyz`. |# # end::doc[] .dirs = ; -rule add-install-dir ( name : suffix : parent ? : options * ) +rule add-install-dir ( name : suffix ? : parent ? : options * ) { + suffix ?= "" ; if $(name) in $(.dirs) { import errors ;