pgsql: Remove win32ver.rc from version_stamp.pl

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Remove win32ver.rc from version_stamp.pl
Дата
Msg-id E1jBc1e-0006Yd-MY@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Remove win32ver.rc from version_stamp.pl  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-committers
Remove win32ver.rc from version_stamp.pl

This removes another relic from the old nmake-based Windows build.
version_stamp.pl put version number information into win32ver.rc.  But
win32ver.rc already gets other version number information from the
preprocessor at build time, so it would make more sense if all version
number information would be handled in the same way and we don't have
two places that do it.

What we need for this is having the major version number and the minor
version number as separate integer symbols.  Both configure and
Solution.pm already have that logic, because they compute
PG_VERSION_NUM.  So we just keep all the logic there now.  Put the
minor version number into a new symbol PG_MINORVERSION_NUM.  Also, add
a symbol PG_MAJORVERSION_NUM, which is a number, alongside the
existing PG_MAJORVERSION, which is a string.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/1ee46ac4-a9b2-4531-bf54-5ec2e374634d@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0a42a2e9ce8481a024d085f2cc526a366db8df59

Modified Files
--------------
configure                  | 15 +++++++++++++--
configure.in               |  7 +++++--
src/include/pg_config.h.in |  6 ++++++
src/port/win32ver.rc       |  4 ++--
src/tools/msvc/Solution.pm | 16 +++++++++-------
src/tools/version_stamp.pl | 14 +-------------
6 files changed, 36 insertions(+), 26 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Remove utils/acl.h from catalog/objectaddress.h
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pgsql: Remove win32ver.rc from version_stamp.pl