cagebreak/test/clang-format
project-repo 4f7be9d5cd Release 2.1.0
- Add -bs (bad security) option
- Fix Issue 57 (SPDX spelling error #39)
- Fix Issue 59 (meson install settings)
- Fix Issue 55 (npd)
- Fix Issue 56 (npd)
- Fix Issue 58 (#40 config)
- Improve release procedure
- Add miniscule test suite
- Adjust Cagebreak to wlroots 0.16.2
- New GPG Keys
2023-04-04 14:00:31 +02:00

26 lines
435 B
Bash

#! /bin/sh
# Copyright 2023, project-repo and the cagebreak contributors
# SPDX-License-Identifier: MIT
readonly declared_deps="${*}"
readonly deps="${declared_deps}"
RESULT=0
set -x
echo "${MESONCURRENTCONFIGDIR}"
for file in ${deps}
do
echo "${file}"
if (clang-format -Werror --dry-run "${MESONCURRENTCONFIGDIR}/${file}")
then
echo " [x] clang-format"
else
RESULT=1
echo " [ ] clang-format"
fi
done
exit "${RESULT}"