We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4639432 commit149ac7dCopy full SHA for 149ac7d
src/tools/pgindent/README
@@ -1,5 +1,3 @@
1
-src/tools/pgindent/README
2
-
3
pgindent
4
========
5
@@ -26,9 +24,7 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
26
24
27
25
6) Run pgindent:
28
29
-find . -name '*.[ch]' -type f -print | \
30
-egrep -v -f src/tools/pgindent/exclude_file_patterns | \
31
-xargs -n100 src/tools/pgindent/pgindent src/tools/pgindent/typedefs.list
+pgindent
32
33
7) Remove any files that generate errors and restore their original
34
versions.
@@ -46,7 +42,14 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
46
42
47
43
9) Indent the Perl code:
48
44
49
-find . -name \*.pl -o -name \*.pm |
45
+(
+find . -name \*.pl -o -name \*.pm
+
+find . -type f -exec file {} \; |
+egrep -i ':.*perl[0-9]*\>' |
50
+cut -d: -f1
51
+) |
52
+sort -u |
53
xargs perltidy --profile=src/tools/pgindent/perltidyrc
54
55
---------------------------------------------------------------------------