代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/gpdb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
./getversion
and ./getversion --short
commands to function a…
#!/usr/bin/env bash
# Make sure we're running from the root git repository, not whatever submodule
# we could have been called from.
pushd $(dirname "$0") > /dev/null
VERSION=$(perl -e 'while(<>){print $1 if (/^PACKAGE_VERSION='\''(.+)'\''$/)}' < configure)
BUILDNUMBER=dev
# Call git describe, and convert it to a semi-semantic version, like
# 5.0.0-alpha.0+dev.52.g123abc
generate_dev_version() {
git describe | perl -pe 's/(.*)-([0-9]*)-(g[0-9a-f]*)/\1+dev.\2.\3/'
}
# If we are in a Git repository and have git installed, build the version
# string using the latest tag in case it's reachable
if type git >/dev/null 2>&1 && [ -d '.git' ] ; then
# Check for tag reachability, in case of shallow clones we might not
# be able to use git describe since the commit which was tagged is
# unreachable even if we have pulled the tags. If we can reach it,
# overwrite the VERSION from autoconf with the output, else append
# HEAD commit info
if git describe >/dev/null 2>&1 ; then
VERSION=$(generate_dev_version)
else
VERSION+=+
VERSION+=$(git rev-parse --short HEAD)
fi
# If not a git repository and VERSION file exists, use version string from file.
elif [[ -s ./VERSION ]]; then
VERSION=$(awk -F' build ' '{print $1}' ./VERSION)
BUILDNUMBER=$(awk -F' build ' '{print $2}' ./VERSION)
fi
FLAG="${1:-noflag}"
if [ "$FLAG" = '--short' ] ; then
echo "${VERSION}"
else
if [[ ${BUILDNUMBER} = 'dev' && -f BUILD_NUMBER ]] ; then
BUILDNUMBER=`cat BUILD_NUMBER`
fi
echo "${VERSION} build ${BUILDNUMBER}"
fi
popd > /dev/null
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。