projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0dc23f
)
Fix a logic bug in pgindent.
author
Andrew Dunstan
<andrew@dunslane.net>
Mon, 7 Jan 2013 17:26:27 +0000
(12:26 -0500)
committer
Andrew Dunstan
<andrew@dunslane.net>
Mon, 7 Jan 2013 17:26:27 +0000
(12:26 -0500)
src/tools/pgindent/pgindent
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/pgindent/pgindent
b/src/tools/pgindent/pgindent
index 56e95f48dc8259aacdaa046b61f83eb7bc9e1d69..ce72883fd8c0f365e68c8a65e45ebeec9eeed7bf 100755
(executable)
--- a/
src/tools/pgindent/pgindent
+++ b/
src/tools/pgindent/pgindent
@@
-37,7
+37,7
@@
run_build($code_base) if ($build);
# command line option wins, then first non-option arg,
# then environment (which is how --build sets it) ,
# then locations. based on current dir, then default location
-$typedefs_file ||= shift if @ARGV && $ARGV[0] !~ /\
\
.[ch]$/;
+$typedefs_file ||= shift if @ARGV && $ARGV[0] !~ /\.[ch]$/;
$typedefs_file ||= $ENV{PGTYPEDEFS};
# build mode sets PGINDENT and PGENTAB