aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2012-06-15 22:43:23 -0400
committerBruce Momjian <bruce@momjian.us>2012-06-15 22:43:23 -0400
commitd6e02074371b39f9bfd7323c95102e4af53b34c6 (patch)
tree9f55c2e5ce4e3f9abd8dd15a54c62b495224b7b7 /src
parent877b55c61962b480080a818b95dd462d5a7fe68d (diff)
downloadpostgresql-d6e02074371b39f9bfd7323c95102e4af53b34c6.tar.gz
postgresql-d6e02074371b39f9bfd7323c95102e4af53b34c6.zip
Update pgindent Perl indentation instructions based on feedback from
Àlvaro and Noah Misch. Backpatch to 9.2.
Diffstat (limited to 'src')
-rw-r--r--src/tools/pgindent/README13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README
index 627d731e8a5..f3091da0cc5 100644
--- a/src/tools/pgindent/README
+++ b/src/tools/pgindent/README
@@ -44,10 +44,15 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
pg_ctl start
gmake installcheck-world
-9) Indent the Perl MSVC code:
-
- cd src/tools/msvc
- perltidy -b -bl -nsfs -naws -l=100 -ole=unix *.pl *.pm
+9) Indent the Perl code:
+
+ find . -name \*.pl -o -name \*.pm | xargs perltidy \
+ --backup-and-modify-in-place --opening-brace-on-new-line \
+ --vertical-tightness=2 --vertical-tightness-closing=2 \
+ --nospace-after-keyword=for --nospace-for-semicolon \
+ --add-whitespace --delete-old-whitespace --paren-tightness=2 \
+ --keep-old-blank-lines=2 --maximum-line-length=78 \
+ --entab-leading-whitespace=4 --output-line-ending=unix
---------------------------------------------------------------------------