diff options
Diffstat (limited to 'build2/dist')
-rw-r--r-- | build2/dist/init.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build2/dist/init.cxx b/build2/dist/init.cxx index a7d8d2f..df162a2 100644 --- a/build2/dist/init.cxx +++ b/build2/dist/init.cxx @@ -50,9 +50,15 @@ namespace build2 vp.insert<paths> ("config.dist.archives", true); vp.insert<path> ("config.dist.cmd", true); + // Allow distribution of uncommitted projects. This is enforced by the + // version module. + // + vp.insert<bool> ("config.dist.uncommitted", true); + vp.insert<dir_path> ("dist.root"); vp.insert<process_path> ("dist.cmd"); vp.insert<paths> ("dist.archives"); + vp.insert<paths> ("dist.uncommitted"); vp.insert<bool> ("dist", variable_visibility::target); // Flag. @@ -148,6 +154,12 @@ namespace build2 } } + // dist.uncommitted + // + // Omit it from the configuration unless specified. + // + config::omitted (rs, "config.dist.uncommitted"); + return true; } } |