]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Enable clangd execution for all distributions
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 18 Nov 2024 19:19:22 +0000 (20:19 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 18 Nov 2024 23:21:24 +0000 (23:21 +0000)
mkosi.images/build/mkosi.build.chroot [new file with mode: 0755]
mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot

diff --git a/mkosi.images/build/mkosi.build.chroot b/mkosi.images/build/mkosi.build.chroot
new file mode 100755 (executable)
index 0000000..4a3c977
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+set -e
+
+if [[ "$1" == "clangd" ]]; then
+    exec "$@"
+fi
index f0bdcc13e63f015c0b477984794affb27f7d1823..6c66888afe646eb3de757a7cea9d6a35603d312d 100755 (executable)
@@ -2,10 +2,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -e
 
-if [[ "$1" == "clangd" ]]; then
-    exec "$@"
-fi
-
 if [[ ! -f "pkg/$PKG_SUBDIR/PKGBUILD" ]]; then
     echo "PKGBUILD not found at pkg/$PKG_SUBDIR/PKGBUILD, run mkosi once with -ff to make sure the PKGBUILD is cloned" >&2
     exit 1