Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffba91c

Browse files
committed
Make pgindent use GNU Indent version 2.X better.
1 parent355cc69 commitffba91c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/tools/pgindent/pgindent

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ thenecho "Go to the src/tools/entab directory and do a 'make' and 'make install
1414
echo"Then run$0 again."
1515
exit 1
1616
fi
17-
indent --version</dev/null>/dev/null2>&1
17+
indent -version</dev/null>/dev/null2>&1
1818
if ["$?"-eq 0 ]
1919
thenecho"You do not appear to have 'indent' installed on your system.">&2
2020
exit 1
2121
fi
22-
indent -version -npro</dev/null>/dev/null2>&1
22+
indent -gnu</dev/null>/dev/null2>&1
2323
if ["$?"-eq 0 ]
2424
thenecho"You appear to have GNU indent rather than BSD indent.">&2
2525
echo"See the pgindent/README file for a description of its problems.">&2
26-
EXTRA_OPTS="-ncdb -bli0 -npcs -cli4"
26+
EXTRA_OPTS="-cdb -bli0 -npcs -cli4 -sc"
2727
elseecho"Hope you installed /src/tools/pgindent/indent.bsd.patch.">&2
28-
EXTRA_OPTS="-bbb -cli1"
28+
EXTRA_OPTS="-cli1"
2929
fi
3030

3131
for FILE
@@ -67,7 +67,7 @@ do
6767

6868
# We get the list of typedef's from /src/tools/find_typedef
6969
indent -bad -bap -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l75 \
70-
-lp -nip -npro$EXTRA_OPTS \
70+
-lp -nip -npro-bbb$EXTRA_OPTS \
7171
-TA_Const \
7272
-TA_Expr \
7373
-TA_Indices \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp