3 # Find Koha source files that are not in UTF-8. Non-textual files are ignored.
4 # This script requires the isutf8 program from Joey Hess's moreutils package.
5 # See <http://kitenet.net/~joey/code/moreutils/> for info.
7 # Copyright 2010 Catalyst IT Ltd
9 # This file is part of Koha.
11 # Koha is free software; you can redistribute it and/or modify it under the
12 # terms of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
16 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
17 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
18 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License along
21 # with Koha; if not, write to the Free Software Foundation, Inc.,
22 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 grep -Ev '\.(gif|jpg|png|pdf|ogg|psd|swf|odt|zip|ico|DS_Store|chr|dat)$' |
28 grep -v /js
/tinymce
/ |
31 if ! isutf8
-q "$filename"