On Sun, Nov 27, 2016 at 09:12:47AM -0600, Jim Nasby wrote:
> On 11/27/16 12:16 AM, Michael Paquier wrote:
> > date: Thu, 2 Jul 2015 17:24:36 -0400
> > Make numeric form of PG version number readily available in Makefiles.
>
> If you don't want to wait for that,
I wonder whether a back-patch to 9.2 with that would be accepted...
> you can use [1] in shell
I'd like to make as few assumptions about build environments as I can.
I know for sure that people are building my things on platforms like
Windows that I have no way to test, but don't wish to break.
> or Make to accomplish something similar. Looks like there is a
> dotted MAJORVERSION variable going back to at least 9.1,
Good to know. I guess I can rely on there being a GNU make...at least
for now.
> so I could have used that instead of PGVERSION on line 51.
> 1: https://github.com/decibel/pgxntool/blob/master/base.mk#L47-L56
Thanks for sharing :)
Best,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate