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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user