spdlog/scripts/format.sh

14 lines
336 B
Bash
Raw Normal View History

2019-07-01 06:37:18 -04:00
#!/bin/bash
cd "$(dirname "$0")"
cd ..
2018-03-17 06:49:31 -04:00
echo -n "Running dos2unix "
2018-09-17 17:16:13 -04:00
find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
2018-03-17 06:47:04 -04:00
echo
echo -n "Running clang-format "
2018-09-17 17:16:13 -04:00
find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
2018-03-17 06:47:04 -04:00
echo
2018-03-09 07:27:15 -05:00