Git commit fe8dbd69e35a9367181fe5d27c10d25786f192a4 by Andrew Shark. Committed on 16/01/2024 at 12:49. Pushed by ashark into branch 'master'.
Add support for --no-build-when-unchanged This option was mistakenly not marked as negatable. Adding the negatable form allows to override the `true` value set to this option from config. Fixes: #351 M +1 -1 completions/zsh/_kdesrc-build M +2 -4 doc/conf-options-table.docbook M +1 -1 modules/ksb/Cmdline.pm https://invent.kde.org/sdk/kdesrc-build/-/commit/fe8dbd69e35a9367181fe5d27c10d25786f192a4 diff --git a/completions/zsh/_kdesrc-build b/completions/zsh/_kdesrc-build index 17f2f153..3741e76f 100644 --- a/completions/zsh/_kdesrc-build +++ b/completions/zsh/_kdesrc-build @@ -20,7 +20,7 @@ _arguments \ "--branch"":argument:" \ "--build-dir"":argument:" \ "--build-system-only" \ - "(--build-when-unchanged --force-build)"{--build-when-unchanged,--force-build}"[Disable skipping the build process.]" \ + "(--build-when-unchanged --no-build-when-unchanged --force-build --no-force-build)"{--build-when-unchanged,--no-build-when-unchanged,--force-build,--no-force-build}"[Disable skipping the build process.]" \ "--cmake-generator"":argument:" \ "--cmake-options"":argument:" \ "--cmake-toolchain"":argument:" \ diff --git a/doc/conf-options-table.docbook b/doc/conf-options-table.docbook index 86e35dbb..da8b7da1 100644 --- a/doc/conf-options-table.docbook +++ b/doc/conf-options-table.docbook @@ -417,13 +417,11 @@ class="directory">/home/user-name/builddir</filename>.</para></listitem> <para>Control whether &kdesrc-build; always tries to build a module that has not had any source code updates.</para> -<para>By setting <option>build-when-unchanged</option> to -<userinput>true</userinput>, &kdesrc-build; always attempts the build phase +<para>If set to <userinput>true</userinput>, &kdesrc-build; always attempts the build phase for a module, even if the module did not have any source code updates. With this value it will more likely lead to a correct build.</para> -<para>By setting <option>build-when-unchanged</option> to -<userinput>false</userinput>, &kdesrc-build; will only attempt to run the +<para>If set to <userinput>false</userinput>, &kdesrc-build; will only attempt to run the build phase for a module if the module has a source code update, or in other situations where it is likely that a rebuild is actually required. This can save time, especially if you run &kdesrc-build; daily, or more frequently.</para> diff --git a/modules/ksb/Cmdline.pm b/modules/ksb/Cmdline.pm index 2422cd83..8c7a6dba 100644 --- a/modules/ksb/Cmdline.pm +++ b/modules/ksb/Cmdline.pm @@ -449,7 +449,7 @@ sub _supportedOptions ); my @context_options_with_extra_specifier = ( - 'build-when-unchanged|force-build', + 'build-when-unchanged|force-build!', 'colorful-output|color!', 'ignore-modules|!=s{,}', 'niceness|nice:10',