heptagon/tools/enforce_style.sh

3 lines
214 B
Bash
Raw Normal View History

2010-06-30 15:36:07 +02:00
#!/bin/sh
find . \! -path "*build*" -and \( -iname "*.ml" -or -iname "*.mli" -or -iname "*.mly" -or -iname "*.mll" -or -iname "*.ept" -or -iname "*.txt" \) -exec perl -pi -e 's/( |\t)+$//gi; s/\t/ /g' {} \;