spdlog/format.sh

10 lines
275 B
Bash
Raw Normal View History

2018-03-09 07:27:15 -05:00
#!/bin/bash
2018-03-17 06:49:31 -04:00
echo -n "Running dos2unix "
2018-03-17 06:47:04 -04:00
find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
echo
echo -n "Running clang-format "
find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
echo
2018-03-09 07:27:15 -05:00