]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: wire up "git-gui--askyesno" with Meson
authorPatrick Steinhardt <ps@pks.im>
Tue, 10 Feb 2026 13:19:28 +0000 (14:19 +0100)
committerPatrick Steinhardt <ps@pks.im>
Tue, 17 Feb 2026 05:59:30 +0000 (06:59 +0100)
The new "git-gui--askyesno" helper script has only been wired up for our
Makefile, not for Meson. Wire it up properly to bring both build systems
on par with each other again.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
meson.build

index a2156f01e3e89e21f16b88ba5644dfd19dd2e4d0..a8119aa29fed95101cf050446a0687c2ae3248c0 100644 (file)
@@ -54,19 +54,21 @@ if target_machine.system() == 'windows'
   )
 endif
 
-custom_target(
-  output: 'git-gui--askpass',
-  input: 'git-gui--askpass.sh',
-  command: [
-    shell,
-    meson.current_source_dir() / 'generate-script.sh',
-    '@OUTPUT@',
-    '@INPUT@',
-    meson.current_build_dir() / 'GIT-GUI-BUILD-OPTIONS',
-  ],
-  install: true,
-  install_dir: get_option('libexecdir') / 'git-core',
-)
+foreach script : [ 'git-gui--askpass', 'git-gui--askyesno' ]
+  custom_target(
+    output: script,
+    input: script + '.sh',
+    command: [
+      shell,
+      meson.current_source_dir() / 'generate-script.sh',
+      '@OUTPUT@',
+      '@INPUT@',
+      meson.current_build_dir() / 'GIT-GUI-BUILD-OPTIONS',
+    ],
+    install: true,
+    install_dir: get_option('libexecdir') / 'git-core',
+  )
+endforeach
 
 custom_target(
   input: 'git-gui.sh',