timescaledb/scripts/cmake_format_all.sh
Mats Kindahl 71e8f13871 Add workflow and CMake support for formatting
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.
2021-06-17 22:52:29 +02:00

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 {} +