wesnoth/check_utf8.sh
Chris Beck 394f4e273c add utf8 formatting check to the clang tests on travis
This will automatically detect BOM's and such which might be
accidentally committed.
2014-06-29 16:33:54 -04:00

7 lines
333 B
Bash
Executable File

#!/bin/bash
# Install isutf8 program (from package "moreutils" at least in linux mint)
# in order to use this script
set -e
find src/ -type f -print0 | xargs -0 isutf8 --
find data/ -not -name "*.png" -not -name "*.ogg" -not -name "*.jpg" -not -name "*.wav" -not -name "*.gif" -not -name "*.xcf" -type f -print0 | xargs -0 isutf8 --