mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5137 201d5d3c-b55e-5fd7-737f-ddc643e51545
16 lines
360 B
Bash
16 lines
360 B
Bash
#!/usr/bin/env bash
|
|
|
|
files_with_long_lines=$(./admin/findphp |
|
|
xargs -l1 wc -L |
|
|
awk '$1 > 80 { print $2 }' |
|
|
xargs -l1 --replace=FILENAME /usr/bin/env perl admin/longlines.pl FILENAME 80)
|
|
|
|
if [ "$files_with_long_lines" ]
|
|
then
|
|
cat <<EOF 1>&2
|
|
Found lines > 80 characters in:
|
|
|
|
$files_with_long_lines
|
|
EOF
|
|
exit 1
|
|
fi
|