@@ -56,10 +56,11 @@ sub Install
56
56
my $majorver = DetermineMajorVersion();
57
57
print " Installing version $majorver for $conf in $target \n " ;
58
58
59
- EnsureDirectories($target , ' bin' , ' lib' , ' share' , ' share/timezonesets' ,
60
- ' share/extension' , ' share/contrib' ,
61
- ' doc' , ' doc/extension' , ' doc/contrib' ,
62
- ' symbols' , ' share/tsearch_data' );
59
+ EnsureDirectories(
60
+ $target , ' bin' , ' lib' , ' share' ,
61
+ ' share/timezonesets' ,' share/extension' , ' share/contrib' ,' doc' ,
62
+ ' doc/extension' , ' doc/contrib' ,' symbols' , ' share/tsearch_data'
63
+ );
63
64
64
65
CopySolutionOutput($conf , $target );
65
66
lcopy($target . ' /lib/libpq.dll' , $target . ' /bin/libpq.dll' );
@@ -113,11 +114,11 @@ sub Install
113
114
CopyContribFiles($config ,$target );
114
115
CopyIncludeFiles($target );
115
116
116
- my $pl_extension_files = [];
117
- my @pldirs = (' src/pl/plpgsql/src' );
118
- push @pldirs ," src/pl/plperl" if $config -> {perl };
119
- push @pldirs ," src/pl/plpython" if $config -> {python };
120
- push @pldirs ," src/pl/tcl" if $config -> {tcl };
117
+ my $pl_extension_files = [];
118
+ my @pldirs = (' src/pl/plpgsql/src' );
119
+ push @pldirs ," src/pl/plperl" if $config -> {perl };
120
+ push @pldirs ," src/pl/plpython" if $config -> {python };
121
+ push @pldirs ," src/pl/tcl" if $config -> {tcl };
121
122
File::Find::find(
122
123
{
123
124
wanted => sub {
@@ -127,10 +128,7 @@ sub Install
127
128
},
128
129
@pldirs
129
130
);
130
- CopySetOfFiles(
131
- ' PL Extension files' , $pl_extension_files ,
132
- $target . ' /share/extension/'
133
- );
131
+ CopySetOfFiles(' PL Extension files' , $pl_extension_files ,$target . ' /share/extension/' );
134
132
135
133
GenerateNLSFiles($target ,$config -> {nls },$majorver ) if ($config -> {nls });
136
134
@@ -350,9 +348,10 @@ sub CopyContribFiles
350
348
351
349
foreach my $f (split /\s +/,$flist )
352
350
{
353
- lcopy(' contrib/' . $d . ' /' . $f . ' .control' ,
354
- $target . ' /share/extension/' . $f . ' .control' )
355
- || croak(" Could not copy file $f .control in contrib $d " );
351
+ lcopy(
352
+ ' contrib/' . $d . ' /' . $f . ' .control' ,
353
+ $target . ' /share/extension/' . $f . ' .control'
354
+ )|| croak(" Could not copy file $f .control in contrib $d " );
356
355
print ' .' ;
357
356
}
358
357
}
@@ -369,7 +368,7 @@ sub CopyContribFiles
369
368
foreach my $f (split /\s +/,$flist )
370
369
{
371
370
lcopy(' contrib/' . $d . ' /' . $f ,
372
- $target . ' /share/' . $moduledir . ' /' . basename($f ))
371
+ $target . ' /share/' . $moduledir . ' /' . basename($f ))
373
372
|| croak(" Could not copy file $f in contrib $d " );
374
373
print ' .' ;
375
374
}
@@ -383,8 +382,7 @@ sub CopyContribFiles
383
382
384
383
foreach my $f (split /\s +/,$flist )
385
384
{
386
- lcopy(' contrib/' . $d . ' /' . $f ,
387
- $target . ' /share/tsearch_data/' . basename($f ))
385
+ lcopy(' contrib/' . $d . ' /' . $f ,$target . ' /share/tsearch_data/' . basename($f ))
388
386
|| croak(" Could not copy file $f in contrib $d " );
389
387
print ' .' ;
390
388
}
@@ -402,8 +400,7 @@ sub CopyContribFiles
402
400
if ($d eq ' spi' );
403
401
foreach my $f (split /\s +/,$flist )
404
402
{
405
- lcopy(' contrib/' . $d . ' /' . $f ,
406
- $target . ' /doc/' . $moduledir . ' /' . $f )
403
+ lcopy(' contrib/' . $d . ' /' . $f ,$target . ' /doc/' . $moduledir . ' /' . $f )
407
404
|| croak(" Could not copy file $f in contrib $d " );
408
405
print ' .' ;
409
406
}
@@ -473,14 +470,14 @@ sub CopyIncludeFiles
473
470
$target . ' /include/server/' ,
474
471
' src/include/' , ' pg_config.h' , ' pg_config_os.h'
475
472
);
476
- CopyFiles(' Grammar header' , $target . ' /include/server/parser/' ,
477
- ' src/backend/parser/ ' , ' gram.h' );
473
+ CopyFiles(' Grammar header' , $target . ' /include/server/parser/' ,' src/backend/parser/ ' ,
474
+ ' gram.h' );
478
475
CopySetOfFiles(' ' ,[ glob (" src\\ include\\ *.h" ) ],$target . ' /include/server/' );
479
476
my $D ;
480
477
opendir ($D , ' src/include' ) || croak " Could not opendir on src/include!\n " ;
481
478
482
- # some xcopy progs don't like mixed slash style paths
483
- (my $ctarget = $target ) =~ s ! /! \\ ! g ;
479
+ # some xcopy progs don't like mixed slash style paths
480
+ (my $ctarget = $target ) =~ s ! /! \\ ! g ;
484
481
while (my $d = readdir ($D ))
485
482
{
486
483
next if ($d =~ / ^\. / );
0 commit comments