mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 11:25:26 +00:00
scripts: add cmake-format to format-and-spellcheck.sh
This commit is contained in:
parent
7b734a4a6c
commit
53ce86abf3
|
@ -42,13 +42,19 @@ PATCH_NAME=fixes.diff
|
|||
echo "Running clang-format..."
|
||||
echo
|
||||
./format-project.sh
|
||||
|
||||
echo "Running cmake-format..."
|
||||
echo
|
||||
./format-cmake.sh
|
||||
|
||||
|
||||
(
|
||||
cd ..
|
||||
mkdir -p $PATCH_DIR
|
||||
# Can't use tee because it hides the exit code
|
||||
if git diff --patch --exit-code > $PATCH_DIR/$PATCH_NAME; then
|
||||
echo
|
||||
echo "clang-format and codespell changed nothing."
|
||||
echo "clang-format, cmake-format and codespell changed nothing."
|
||||
else
|
||||
echo
|
||||
echo "clang-format and/or codespell made at least one change, please apply the patch in the job artifacts and seen below!"
|
||||
|
|
Loading…
Reference in a new issue