File: nobadcase

package info (click to toggle)
php-openid 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,284 kB
  • ctags: 6,733
  • sloc: php: 20,482; python: 346; xml: 333; sh: 130; perl: 103; makefile: 31
file content (14 lines) | stat: -rw-r--r-- 209 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

bad=$(./admin/findphp | xargs egrep -n '\b(TRUE|FALSE|NULL)\b')

if [ ! -z "$bad" ]
    then
    cat <<EOF 1>&2
These files contain wrongly capitalized constants:

$bad

EOF
    exit 1
fi