From: Phillip Wood Date: Mon, 9 Feb 2026 10:08:43 +0000 (+0000) Subject: meson: fix building mergetool docs X-Git-Tag: v2.54.0-rc0~139^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e4eeeeb5439dc1f629579ba03844500827ff20;p=thirdparty%2Fgit.git meson: fix building mergetool docs Building the documentation with meson when the build directory is not an immediate subdirectory of the source directory prints the following error [2/1349] Generating Documentation/mer... command (wrapped by meson to set env) ../../Documentation/generate-mergetool-list.sh: line 15: ../git-mergetool--lib.sh: No such file or directory The build does not fail because the failure is upstream of a pipe. Fix the error by passing the correct source directory when meson runs "generate-mergetool-list.sh". As that script sets $MERGE_TOOLS_DIR we do not need to set it in the environment when running the script. Signed-off-by: Phillip Wood Signed-off-by: Junio C Hamano --- diff --git a/Documentation/meson.build b/Documentation/meson.build index c00c9fe7f4..31049f99e1 100644 --- a/Documentation/meson.build +++ b/Documentation/meson.build @@ -352,13 +352,10 @@ foreach mode : [ 'diff', 'merge' ] command: [ shell, '@INPUT@', - '..', + meson.project_source_root(), mode, '@OUTPUT@' ], - env: [ - 'MERGE_TOOLS_DIR=' + meson.project_source_root() / 'mergetools', - ], input: 'generate-mergetool-list.sh', output: 'mergetools-' + mode + '.adoc', )