Blame view

3rdparty/spdlog-1.9.2/scripts/format.sh 546 Bytes
3d2ab595   Hu Chunming   支持gb28181
1
2
3
4
5
6
7
8
9
10
11
12
13
  #!/bin/bash
  
  cd "$(dirname "$0")"/..
  pwd
  echo -n "Running dos2unix     "
  find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
  echo
  echo -n "Running clang-format "
  find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
  echo
  echo -n "Running cmake-format "
  find . -name "CMakeLists.txt" -o -name "*\.cmake"|grep -v bundled|xargs -I {} sh -c "cmake-format --line-width 120 --tab-size 4 --max-subgroups-hwrap 4 -i {}; echo -n '.'"
  echo