Debian Codegraph @

src/tools/perlcheck/pgperlsyncheck

raw
1 #!/bin/sh
2
3 # script to detect compile time errors and warnings in all perl files
4
5 INCLUDES="-I src/backend/catalog"
6 INCLUDES="-I src/test/perl -I src/backend/utils/mb/Unicode $INCLUDES"
7 INCLUDES="-I src/bin/pg_rewind -I src/test/ssl/t $INCLUDES"
8
9 set -e
10
11 . src/tools/perlcheck/find_perl_files
12
13 # for zsh
14 setopt shwordsplit 2>/dev/null || true
15
16 find_perl_files "$@" | xargs -L 1 perl $INCLUDES -cw 2>&1 | grep -v OK