mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
Add a workflow to check that CMake files are correctly formatted as well as a custom target to format CMake files in the repository. This commit also runs the formatting on all CMake files in the repository.
8 lines
230 B
Bash
Executable File
8 lines
230 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPTDIR=$(cd $(dirname $0); pwd)
|
|
BASEDIR=$(dirname $SCRIPTDIR)
|
|
|
|
find $BASEDIR -name CMakeLists.txt -exec cmake-format -i {} +
|
|
find $BASEDIR/src $BASEDIR/test $BASEDIR/tsl -name '*.cmake' -exec cmake-format -i {} +
|