File: check-formatting.sh

package info (click to toggle)
libsml 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 844 kB
  • sloc: ansic: 8,435; makefile: 174; sh: 5
file content (6 lines) | stat: -rwxr-xr-x 267 bytes parent folder | download
1
2
3
4
5
6
#!/bin/bash
set -xe
SRCDIRS=(sml)
clang-format --version
find "${SRCDIRS[@]}"  -type f -name '*.h' -o -name '*.cpp' -o -name '*.hpp' | xargs -I{} -P1 clang-format -i -style=file {}
[[ -z "$(git status --porcelain "${SRCDIRS[@]}")" ]] || (git status; git diff; false)