aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2012-06-16 10:12:50 -0400
committerBruce Momjian <bruce@momjian.us>2012-06-16 10:12:50 -0400
commit47463a809870a736fcd2a4c6896c0f54be831f51 (patch)
tree2a00400aadf2033238397cf56e0b96d8b6a1a361 /src
parent0acd97825916bd341dfc6061a0713e0c56901571 (diff)
downloadpostgresql-47463a809870a736fcd2a4c6896c0f54be831f51.tar.gz
postgresql-47463a809870a736fcd2a4c6896c0f54be831f51.zip
Remove 'for' loop perltidy argument, and move args to perltidyrc file.
Backpatch to 9.2. Per suggestion from Noah Misch
Diffstat (limited to 'src')
-rw-r--r--src/tools/pgindent/README9
-rw-r--r--src/tools/pgindent/perltidyrc12
2 files changed, 14 insertions, 7 deletions
diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README
index 191a8f2122c..fa64390baaf 100644
--- a/src/tools/pgindent/README
+++ b/src/tools/pgindent/README
@@ -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
---------------------------------------------------------------------------
diff --git a/src/tools/pgindent/perltidyrc b/src/tools/pgindent/perltidyrc
new file mode 100644
index 00000000000..60489febb58
--- /dev/null
+++ b/src/tools/pgindent/perltidyrc
@@ -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