scripts: Do not try to format Gradle-generated files

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655>
This commit is contained in:
Rylie Pavlik 2024-08-16 11:44:26 -05:00
parent ec6e9c8b7f
commit 31947810ec

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright 2019-2023, Collabora, Ltd. # Copyright 2019-2024, Collabora, Ltd.
# SPDX-License-Identifier: BSL-1.0 # SPDX-License-Identifier: BSL-1.0
# Author: Rylie Pavlik <rylie.pavlik@collabora.com> # Author: Rylie Pavlik <rylie.pavlik@collabora.com>
@ -24,7 +24,7 @@ fi
( (
${CLANGFORMAT} --version ${CLANGFORMAT} --version
cd $(dirname $0)/.. cd "$(dirname "$0")/.."
find \ find \
src/xrt/auxiliary \ src/xrt/auxiliary \
@ -37,5 +37,6 @@ fi
src/xrt/tracking \ src/xrt/tracking \
tests \ tests \
\( -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" \) \ \( -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" \) \
-exec ${CLANGFORMAT} -i -style=file \{\} + -and -not \( -ipath \*/.cxx/\* \) \
-exec "${CLANGFORMAT}" -i -style=file \{\} +
) )