# 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
. 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
# 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
. 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