View | Details | Raw Unified | Return to bug 4330
Collapse All | Expand All

(-)a/misc/bin/find-misplaced-executables.sh (+38 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# Script to find files that probably should not be executed.
4
#
5
# Copyright 2010 Catalyst IT Ltd
6
#
7
# This file is part of Koha.
8
#
9
# Koha is free software; you can redistribute it and/or modify it under the
10
# terms of the GNU General Public License as published by the Free Software
11
# Foundation; either version 2 of the License, or (at your option) any later
12
# version.
13
#
14
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
15
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
17
#
18
# You should have received a copy of the GNU General Public License along
19
# with Koha; if not, write to the Free Software Foundation, Inc.,
20
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22
set -e
23
24
find . \
25
    -name misc -prune \
26
    -o -name svc -prune \
27
    -o -name xt -prune \
28
    -o -name t -prune \
29
    -o -name .git -prune \
30
    -o -name blib -prune \
31
    -o -name scripts -prune \
32
    -o -name debian -prune \
33
    -o -executable -type f \
34
        '!' -name '*.pl' \
35
        '!' -name '*.sh' \
36
        '!' -name '*.plugin' \
37
        '!' -name unapi \
38
        -print
(-)a/misc/bin/find-nonutf8.sh (+36 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
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.
6
#
7
# Copyright 2010 Catalyst IT Ltd
8
#
9
# This file is part of Koha.
10
#
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
14
# version.
15
#
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.
19
#
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.
23
24
set -e
25
26
git ls-files |
27
grep -Ev '\.(gif|jpg|png|pdf|ogg|psd|swf|odt|zip|ico|DS_Store|chr|dat)$' |
28
grep -v /js/tinymce/ |
29
while read filename
30
do
31
    if ! isutf8 -q "$filename"
32
    then
33
        echo "$filename"
34
    fi
35
done
36
(-)a/xt/find-misplaced-executables (-38 lines)
Lines 1-38 Link Here
1
#!/bin/sh
2
#
3
# Script to find files that probably should not be executed.
4
#
5
# Copyright 2010 Catalyst IT Ltd
6
#
7
# This file is part of Koha.
8
#
9
# Koha is free software; you can redistribute it and/or modify it under the
10
# terms of the GNU General Public License as published by the Free Software
11
# Foundation; either version 2 of the License, or (at your option) any later
12
# version.
13
#
14
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
15
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
17
#
18
# You should have received a copy of the GNU General Public License along
19
# with Koha; if not, write to the Free Software Foundation, Inc.,
20
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22
set -e
23
24
find . \
25
    -name misc -prune \
26
    -o -name svc -prune \
27
    -o -name xt -prune \
28
    -o -name t -prune \
29
    -o -name .git -prune \
30
    -o -name blib -prune \
31
    -o -name scripts -prune \
32
    -o -name debian -prune \
33
    -o -executable -type f \
34
        '!' -name '*.pl' \
35
        '!' -name '*.sh' \
36
        '!' -name '*.plugin' \
37
        '!' -name unapi \
38
        -print
(-)a/xt/find-nonutf8 (-37 lines)
Lines 1-36 Link Here
1
#!/bin/sh
2
#
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.
6
# 
7
# Copyright 2010 Catalyst IT Ltd
8
#
9
# This file is part of Koha.
10
#
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
14
# version.
15
#
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.
19
#
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.
23
24
set -e
25
26
git ls-files |
27
grep -Ev '\.(gif|jpg|png|pdf|ogg|psd|swf|odt|zip|ico|DS_Store|chr|dat)$' |
28
grep -v /js/tinymce/ |
29
while read filename
30
do
31
    if ! isutf8 -q "$filename" 
32
    then
33
        echo "$filename"
34
    fi
35
done
36
37
- 

Return to bug 4330