blob: 87838d6bde3a4f7c9a0fe1b19ca98148f2ab3a6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
# src/tools/pgindent/pgperltidy
set -e
# set this to override default perltidy program:
PERLTIDY=${PERLTIDY:-perltidy}
PERLTIDY_VERSION=20230309
if ! $PERLTIDY -v | grep -q $PERLTIDY_VERSION; then
echo "You do not appear to have $PERLTIDY version $PERLTIDY_VERSION installed on your system." >&2
exit 1
fi
. src/tools/perlcheck/find_perl_files
find_perl_files "$@" | xargs $PERLTIDY --profile=src/tools/pgindent/perltidyrc
|