format.sh 307 B

123456789
  1. #!/bin/bash
  2. echo -n "Running dos2unix "
  3. find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
  4. echo
  5. echo -n "Running clang-format "
  6. find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
  7. echo