Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] Patch to add version numbers to libpq.rc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Magnus Hagander <mha(at)sollentuna(dot)net>,PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>,Dave Page <dpage(at)vale-housing(dot)co(dot)uk>,PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [PATCHES] Patch to add version numbers to libpq.rc
Date: 2004-12-17 01:20:43
Message-ID: 12943.1103246443@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers-win32pgsql-patches
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> + # Force rebuild on re-run of configure
> + $(srcdir)/libpq.rc: $(top_srcdir)/src/Makefile.global libpq.rc.in
> + 	sed -e 's/\(VERSION.*\),0 *$$/\1,'`date '+%y%j'`'/' < $< > $@

Put Makefile.global second, else $< refers to the wrong file.
Also, it has to be $(top_builddir)/src/Makefile.global, not top_srcdir.
The comment would probably be more useful if a little more verbose:
# depend on Makefile.global to force rebuild on re-run of configure

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Sean ChittendenDate: 2004-12-17 01:43:44
Subject: [FIX] Fix for pgxs on darwin and other platforms...
Previous:From: Bruce MomjianDate: 2004-12-17 01:14:42
Subject: Re: [PATCHES] Patch to add version numbers to

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2004-12-17 01:44:52
Subject: Re: [PATCHES] Patch to add version numbers to
Previous:From: Bruce MomjianDate: 2004-12-17 01:14:42
Subject: Re: [PATCHES] Patch to add version numbers to

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group