mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Move perlcritic files to new perlcheck directory
This commit is contained in:
20
src/tools/perlcheck/pgperlcritic
Executable file
20
src/tools/perlcheck/pgperlcritic
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# src/tools/perlcheck/pgperlcritic
|
||||
|
||||
test -f src/tools/perlcheck/perlcriticrc || {
|
||||
echo could not find src/tools/perlcheck/perlcriticrc
|
||||
exit 1
|
||||
}
|
||||
|
||||
set -e
|
||||
|
||||
# set this to override default perlcritic program:
|
||||
PERLCRITIC=${PERLCRITIC:-perlcritic}
|
||||
|
||||
. src/tools/perlcheck/find_perl_files
|
||||
|
||||
find_perl_files | xargs $PERLCRITIC \
|
||||
--quiet \
|
||||
--program-extensions .pl \
|
||||
--profile=src/tools/perlcheck/perlcriticrc
|
Reference in New Issue
Block a user