File: format.sh

package info (click to toggle)
trantor 1.5.24%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,076 kB
  • sloc: cpp: 17,042; sh: 42; makefile: 8
file content (12 lines) | stat: -rwxr-xr-x 447 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

clang-format --version

find trantor -name *.h -o -name *.cc -exec dos2unix {} \;
find trantor -name *.h -o -name *.cc|xargs clang-format -i -style=file

cmake-format --version
find . -maxdepth 1 -name CMakeLists.txt|xargs cmake-format -i
find trantor -name CMakeLists.txt|xargs cmake-format -i
find cmake -name *.cmake -o -name *.cmake.in|xargs cmake-format -i
find cmake_modules -name *.cmake -o -name *.cmake.in|xargs cmake-format -i