Remove 'for' loop perltidy argument, and move args to perltidyrc file.

Backpatch to 9.2.

Per suggestion from Noah Misch
This commit is contained in:
Bruce Momjian 2012-06-16 10:12:50 -04:00
parent 0acd978259
commit 47463a8098
2 changed files with 14 additions and 7 deletions

View File

@ -46,13 +46,8 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
9) Indent the Perl code:
find . -name \*.pl -o -name \*.pm | xargs perltidy --noprofile \
--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
find . -name \*.pl -o -name \*.pm |
xargs perltidy --profile=src/tools/pgindent/perltidyrc
---------------------------------------------------------------------------

View File

@ -0,0 +1,12 @@
--add-whitespace
--backup-and-modify-in-place
--delete-old-whitespace
--entab-leading-whitespace=4
--keep-old-blank-lines=2
--maximum-line-length=78
--nospace-for-semicolon
--opening-brace-on-new-line
--output-line-ending=unix
--paren-tightness=2
--vertical-tightness=2
--vertical-tightness-closing=2