Merge branch 'master' into Mario/vaporizer_damage
[xonotic/xonotic-data.pk3dir.git] / qcsrc / whitespace.sh
1 #!/usr/bin/env bash
2 cd ${0%[\\/]*}
3 find . -name .git -prune -o -type f -print0 |                                    \
4     xargs -0 sed -i                                         \
5         `# strip trailing spaces`                           \
6         -e 's/[[:space:]]*$//'                              \
7         `# line feed at EOF for #include to work properly`  \
8         -e '$a\'