mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 17:03:27 +00:00
fixed formating
This commit is contained in:
15
scripts/cmake-format.sh
Normal file
15
scripts/cmake-format.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Format all CMakeLists.txt and *.cmake files in the repo (excluding common build dirs)
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
cd "$REPO_ROOT"
|
||||
|
||||
find . \
|
||||
-path "./build" -prune -o \
|
||||
-path "./cmake-build-*" -prune -o \
|
||||
-path "./out" -prune -o \
|
||||
-path "./.git" -prune -o \
|
||||
\( -name "CMakeLists.txt" -o -name "*.cmake" \) -print0 \
|
||||
| xargs -0 cmake-format -i
|
||||
Reference in New Issue
Block a user