1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

mkosi: Skip other build scripts if we're running clangd

This commit is contained in:
Daan De Meyer
2025-03-07 16:05:49 +01:00
parent f0efc7ef34
commit 7c94fd1db6
4 changed files with 16 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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