Skip to content

Commit d6e0207

Browse files
committed
Update pgindent Perl indentation instructions based on feedback from
Àlvaro and Noah Misch. Backpatch to 9.2.
1 parent 877b55c commit d6e0207

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/tools/pgindent/README

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,15 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
4444
pg_ctl start
4545
gmake installcheck-world
4646

47-
9) Indent the Perl MSVC code:
48-
49-
cd src/tools/msvc
50-
perltidy -b -bl -nsfs -naws -l=100 -ole=unix *.pl *.pm
47+
9) Indent the Perl code:
48+
49+
find . -name \*.pl -o -name \*.pm | xargs perltidy \
50+
--backup-and-modify-in-place --opening-brace-on-new-line \
51+
--vertical-tightness=2 --vertical-tightness-closing=2 \
52+
--nospace-after-keyword=for --nospace-for-semicolon \
53+
--add-whitespace --delete-old-whitespace --paren-tightness=2 \
54+
--keep-old-blank-lines=2 --maximum-line-length=78 \
55+
--entab-leading-whitespace=4 --output-line-ending=unix
5156

5257
---------------------------------------------------------------------------
5358

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy