2019-07-01 18:37:18 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-02-26 00:52:35 +08:00
|
|
|
cd "$(dirname "$0")"/..
|
|
|
|
pwd
|
2018-03-17 18:49:31 +08:00
|
|
|
echo -n "Running dos2unix "
|
2020-05-02 16:35:13 +08:00
|
|
|
find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
|
2018-03-17 18:47:04 +08:00
|
|
|
echo
|
|
|
|
echo -n "Running clang-format "
|
2023-09-25 01:48:58 +08:00
|
|
|
find include -name "*\.h" |grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
|
|
|
|
find src -name "*\.cpp"|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
|
2018-03-17 18:47:04 +08:00
|
|
|
echo
|
2020-05-02 16:34:04 +08:00
|
|
|
echo -n "Running cmake-format "
|
2023-09-25 01:48:58 +08:00
|
|
|
find . -name "CMakeLists.txt" -o -name "*\.cmake"|grep -v bundled|grep -v build|xargs -I {} sh -c "cmake-format --line-width 120 --tab-size 4 --max-subgroups-hwrap 4 -i {}; echo -n '.'"
|
2020-05-02 16:34:04 +08:00
|
|
|
echo
|
|
|
|
|
2018-03-09 20:27:15 +08:00
|
|
|
|
|
|
|
|