More updates for GNU indent.

REL7_2_STABLE
Bruce Momjian 25 years ago
parent 58df3f785e
commit f008976bcd
  1. 4
      src/tools/pgindent/README
  2. 2
      src/tools/pgindent/pgindent

@ -17,8 +17,8 @@ for the second bug in:
Even with the workaround, installation of the patch produces better
output.
GNU indent, version 1.9.1, has several bugs, and is not recommended.
These bugs become pretty major when you are doing >200k lines of code.
GNU indent, version 2.2.6, has several problems, and is not recommended.
These bugs become pretty major when you are doing >400k lines of code.
If you don't believe me, take a directory and make a copy. Run pgindent
on the copy using GNU indent, and do a diff -r. You will see what I
mean. GNU indent does some things better, but mangles too.

@ -15,7 +15,7 @@ then echo "Go to the src/tools/entab directory and do a 'make' and 'make install
exit 1
fi
indent -version </dev/null >/dev/null 2>&1
if [ "$?" -eq 0 ]
if [ "$?" -ne 1 ]
then echo "You do not appear to have 'indent' installed on your system." >&2
exit 1
fi

Loading…
Cancel
Save