blob: 13af3c1a776c5c35034ef8aecadcce9a95ce033d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env bash
#
# Look in the local directory for PHP files that have tabs in them. If
# there are files with tabs, print the list of files and exit with
# non-zero status.
tabs=$(find ./ \( -name _darcs \) -prune -o \( -type f -a -name \*.php \) |
xargs egrep -l ' ' | sort)
allowed=
if [ "$allowed" != "$tabs" ]
then
cat <<EOF 1>&2
Found tabs in:
$tabs
Tabs allowed in:
$allowed
EOF
exit 1
fi
|