format.sh 275 Bytes
Newer Older
1
#!/bin/bash
gabime's avatar
gabime committed
2
echo -n "Running dos2unix     "
gabime's avatar
gabime committed
3 4 5 6 7
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
8 9