Skip to content
Snippets Groups Projects
Commit d18f5c3e authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Ignore blank lines in typedef file.

parent 35390aab
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.98 2008/01/16 20:13:44 momjian Exp $
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.99 2008/04/16 21:03:08 momjian Exp $
# Known bugs:
#
......@@ -133,7 +133,7 @@ do
# We get the list of typedef's from /src/tools/find_typedef
indent -bad -bap -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l79 \
-lp -nip -npro -bbb $EXTRA_OPTS \
`cat "$TYPEDEFS" | sed 's/.*/-T& /'` \
`cat "$TYPEDEFS" | sed -e '/^$/d' -e 's/.*/-T& /'` \
/tmp/$$a >/tmp/$$ 2>&1
if [ "$?" -ne 0 -o -s /tmp/$$ ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment