Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b4ca39b

Browse files
committed
Allow pgindent to work with newer BSD indents.
1 parent 44f8c5c commit b4ca39b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/pgindent/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ for the second bug in:
2323
/src/tools/pgindent/indent.bsd.patch
2424

2525
Even with the workaround, installation of the patch produces better
26-
output.
26+
output. You can get a patched BSD indent from ftp://ftp.postgresql.org/pub/dev.
2727

2828
GNU indent, version 2.2.6, has several problems, and is not recommended.
2929
These bugs become pretty major when you are doing >400k lines of code.

src/tools/pgindent/pgindent

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ then echo "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/null 2>&1
17+
indent -? </dev/null >/dev/null 2>&1
1818
if [ "$?" -ne 1 ]
1919
then echo "You do not appear to have 'indent' installed on your system." >&2
2020
exit 1

0 commit comments

Comments
 (0)