Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d7085f2

Browse files
committed
Make the makefile pass $MAJORVERSION to genbki.pl, not $VERSION which is
overridden in the snapshot build script. $MAJORVERSION is what it really wanted anyway, so we can tighten up the parsing of --set-version's argument.
1 parent f883e20 commit d7085f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/catalog/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile for backend/catalog
44
#
5-
# $PostgreSQL: pgsql/src/backend/catalog/Makefile,v 1.75 2010/01/05 01:06:56 tgl Exp $
5+
# $PostgreSQL: pgsql/src/backend/catalog/Makefile,v 1.76 2010/01/06 19:56:29 tgl Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -55,7 +55,7 @@ postgres.shdescription: postgres.bki ;
5555
schemapg.h: postgres.bki ;
5656

5757
postgres.bki: genbki.pl Catalog.pm $(POSTGRES_BKI_SRCS)
58-
$(PERL) -I $(catalogdir) $< $(pg_includes) --set-version=$(VERSION) $(POSTGRES_BKI_SRCS)
58+
$(PERL) -I $(catalogdir) $< $(pg_includes) --set-version=$(MAJORVERSION) $(POSTGRES_BKI_SRCS)
5959

6060
.PHONY: install-data
6161
install-data: $(BKIFILES) installdirs

src/backend/catalog/genbki.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
1111
# Portions Copyright (c) 1994, Regents of the University of California
1212
#
13-
# $PostgreSQL: pgsql/src/backend/catalog/genbki.pl,v 1.4 2010/01/05 20:23:32 tgl Exp $
13+
# $PostgreSQL: pgsql/src/backend/catalog/genbki.pl,v 1.5 2010/01/06 19:56:29 tgl Exp $
1414
#
1515
#----------------------------------------------------------------------
1616

@@ -40,7 +40,7 @@
4040
{
4141
push @include_path, length($arg) > 2 ? substr($arg, 2) : shift @ARGV;
4242
}
43-
elsif ($arg =~ /^--set-version=(\d+\.\d+).*$/)
43+
elsif ($arg =~ /^--set-version=(\d+\.\d+)$/)
4444
{
4545
$major_version = $1;
4646
}

0 commit comments

Comments
 (0)