From baac19bdddaf6d0b8a0e6ff693d87404b2a69832 Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Fri, 15 Jun 2012 22:43:22 -0400 Subject: [PATCH] =?UTF-8?q?Update=20pgindent=20Perl=20indentation=20instru?= =?UTF-8?q?ctions=20based=20on=20feedback=20from=20=C3=80lvaro=20and=20Noa?= =?UTF-8?q?h=20Misch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backpatch to 9.2. --- src/tools/pgindent/README | 13 +++++++++---- 1 file 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 --------------------------------------------------------------------------- -- GitLab