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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy