mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
pgindent run for 9.4
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
This commit is contained in:
@@ -25,12 +25,12 @@ my $extra_opts = "";
|
||||
my ($typedefs_file, $typedef_str, $code_base, $excludes, $indent, $build);
|
||||
|
||||
my %options = (
|
||||
"typedefs=s" => \$typedefs_file,
|
||||
"list-of-typedefs=s" => \$typedef_str,
|
||||
"code-base=s" => \$code_base,
|
||||
"excludes=s" => \$excludes,
|
||||
"indent=s" => \$indent,
|
||||
"build" => \$build,);
|
||||
"typedefs=s" => \$typedefs_file,
|
||||
"list-of-typedefs=s" => \$typedef_str,
|
||||
"code-base=s" => \$code_base,
|
||||
"excludes=s" => \$excludes,
|
||||
"indent=s" => \$indent,
|
||||
"build" => \$build,);
|
||||
GetOptions(%options) || die "bad command line argument\n";
|
||||
|
||||
run_build($code_base) if ($build);
|
||||
@@ -394,8 +394,12 @@ sub entab
|
||||
print $tmp_fh $source;
|
||||
$tmp_fh->close();
|
||||
|
||||
open(my $entab, '-|',
|
||||
"$entab -d -t8 -qc " . $tmp_fh->filename . " | $entab -t4 -qc | $entab -d -t4 -m");
|
||||
open(
|
||||
my $entab,
|
||||
'-|',
|
||||
"$entab -d -t8 -qc "
|
||||
. $tmp_fh->filename
|
||||
. " | $entab -t4 -qc | $entab -d -t4 -m");
|
||||
local ($/) = undef;
|
||||
$source = <$entab>;
|
||||
close($entab);
|
||||
|
Reference in New Issue
Block a user