]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Skip other build scripts if we're running clangd
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 7 Mar 2025 15:05:49 +0000 (16:05 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 7 Mar 2025 15:09:03 +0000 (16:09 +0100)
mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.build.chroot
mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.build.chroot
mkosi.images/build/mkosi.conf.d/opensuse/mkosi.build.chroot

index 86aad4ff13ddd33676d632debaf4ca70ef2b57dc..d60a7e979320a1c62a2f8fa6c3f2c860c67d51d0 100755 (executable)
@@ -2,6 +2,10 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -e
 
+if [[ "$1" == "clangd" ]]; then
+    exit 0
+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
index 64d17e770cdc748fcf01a8cb7946e0588e8ba69d..ee50071869ed9e9306724463bc730ed07a0aeea1 100755 (executable)
@@ -4,6 +4,10 @@ set -e
 
 . mkosi.functions
 
+if [[ "$1" == "clangd" ]]; then
+    exit 0
+fi
+
 if [[ ! -f "pkg/$PKG_SUBDIR/systemd.spec" ]]; then
     echo "spec not found at pkg/$PKG_SUBDIR/systemd.spec, run mkosi once with -ff to make sure the spec is cloned" >&2
     exit 1
index 3923df2bbba2fb12da57e07d0d5c71b232a385b8..03ff50211bfe839ec92c0c2b2c6327131306d079 100755 (executable)
@@ -2,6 +2,10 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -e
 
+if [[ "$1" == "clangd" ]]; then
+    exit 0
+fi
+
 if [[ ! -d "pkg/$PKG_SUBDIR/debian" ]]; then
     echo "deb rules not found at pkg/$PKG_SUBDIR/debian, run mkosi once with -ff to make sure the rules are cloned" >&2
     exit 1
index f9fa9ac08501adee92c8974c891c226a006e4608..f845f288c0064890206c8b2b01b61ebbf4ffb7cd 100755 (executable)
@@ -4,6 +4,10 @@ set -e
 
 . mkosi.functions
 
+if [[ "$1" == "clangd" ]]; then
+    exit 0
+fi
+
 if [[ ! -f "pkg/$PKG_SUBDIR${GIT_SUBDIR:+/$GIT_SUBDIR}/systemd.spec" ]]; then
     echo "spec not found at pkg/$PKG_SUBDIR${GIT_SUBDIR:+/$GIT_SUBDIR}/systemd.spec, run mkosi once with -ff to make sure the spec is cloned" >&2
     exit 1