Permalink
Browse files

Allow install skip_step, improve module skeleton.

  • Loading branch information...
1 parent e475d0d commit 17cc40b1a4c6851775c19278cd4b99be6866487a @adunstan adunstan committed May 11, 2012
Showing with 7 additions and 1 deletion.
  1. +5 −1 PGBuild/Modules/Skeleton.pm
  2. +2 −0 run_build.pl
View
6 PGBuild/Modules/Skeleton.pm
@@ -29,9 +29,13 @@ sub setup
my $buildroot = shift; # where we're building
my $branch = shift; # The branch of Postgres that's being built.
my $conf = shift; # ref to the whole config object
+ my $pgsql = shift; # postgres build dir
# could even set up several of these (e.g. for different branches)
- my $self = {};
+ my $self = {buildroot => $buildroot,
+ pgbranch=> $branch,
+ bfconf => $conf,
+ pgsql => $pgsql};
bless($self, $class);
# for each instance you create, do:
View
2 run_build.pl
@@ -637,6 +637,7 @@ END
foreach my $locale (@locales)
{
+ last if $skip_steps{install};
print time_str(),"setting up db cluster ($locale)...\n" if $verbose;
@@ -905,6 +906,7 @@ sub make_doc
sub make_install
{
+ return if $skip_steps{install};
my @makeout;
unless ($using_msvc)
{

0 comments on commit 17cc40b

Please sign in to comment.