提交 383c8f15 编写于 作者: M Michael Roth 提交者: GitHub

Publish vesion info in makefile.global (#2451)

Updates to configure to use `getversion --short` to generate a version
tag that can be used in `Makefile.global` for packaging etc...
上级 7eaae8cd
......@@ -740,6 +740,7 @@ enable_orca
autodepend
TAS
GP_MAJORVERSION
GP_VERSION_SHORT
BLD_ARCH
GCC
CPP
......@@ -5733,6 +5734,9 @@ BLD_ARCH=`echo $BLD_ARCH`
bash getversion > VERSION
GP_VERSION=`cat VERSION`
GP_VERSION_SHORT=`bash ./getversion --short`
GP_VERSION_IN="src/include/catalog/gp_version.in"
GP_VERSION_HEADER="src/include/catalog/gp_version.h"
if grep '\$\$' $GP_VERSION_IN > /dev/null 2>&1 ; then
......
......@@ -574,6 +574,9 @@ AC_SUBST(BLD_ARCH)
bash getversion > VERSION
GP_VERSION=`cat VERSION`
GP_VERSION_SHORT=`bash ./getversion --short`
AC_SUBST(GP_VERSION_SHORT)
GP_VERSION_IN="src/include/catalog/gp_version.in"
GP_VERSION_HEADER="src/include/catalog/gp_version.h"
if grep '\$\$' $GP_VERSION_IN > /dev/null 2>&1 ; then
......
......@@ -36,7 +36,7 @@ PG_VERSION = @PG_PACKAGE_VERSION@
PG_MAJORVERSION = @PG_MAJORVERSION@
# GPDB version number
GP_VERSION = @PACKAGE_VERSION@
GP_VERSION = @GP_VERSION_SHORT@
GP_MAJORVERSION = @GP_MAJORVERSION@
ADDON_DIR = @ADDON_DIR@
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册