From ae58a827b9ea3ce1fad4e8160b8035af3a8ad290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 4 Oct 2024 13:24:46 +0200 Subject: [PATCH] tools/toolbox: Skip install step with --dist The dist command only needs an up-to-date build directory, it does not require the project to be installed first. While the install step is generally quick, leaving the container file system alone can save a rebuild after the dist is done (for instance when testing a branch, then temporarily switching to the release branch for dist). Part-of: --- tools/toolbox/meson-build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/toolbox/meson-build.sh b/tools/toolbox/meson-build.sh index cd9869d5c..b0a237f5c 100755 --- a/tools/toolbox/meson-build.sh +++ b/tools/toolbox/meson-build.sh @@ -50,7 +50,11 @@ compile_command() { } install_command() { - echo -n "sudo meson install -C $BUILD_DIR" + if [[ $RUN_DIST ]]; then + echo -n : + else + echo -n "sudo meson install -C $BUILD_DIR" + fi } dist_command() {