spdlog/format.sh

10 lines
307 B
Bash
Raw Normal View History

2018-03-09 20:27:15 +08:00
#!/bin/bash
2018-03-17 18:49:31 +08:00
echo -n "Running dos2unix "
2018-09-18 05:16: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 "
2018-09-18 05:16:13 +08:00
find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
2018-03-17 18:47:04 +08:00
echo
2018-03-09 20:27:15 +08:00