mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
Restrict release number to META version
When creating packages in a git repository the release number can be automatically set by 'git describe'. This normally works well but if your repository has newer tags which match the form NAME-VERSION* the release may be incorrectly calculated. To prevent this the match patten has been restricted to NAME-VERSION. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
376dc35e22
commit
c4f38ddd80
@ -57,7 +57,7 @@ AC_DEFUN([SPL_AC_META], [
|
||||
|
||||
SPL_META_RELEASE=_SPL_AC_META_GETVAL([Release]);
|
||||
if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
|
||||
_match="${SPL_META_NAME}-${SPL_META_VERSION}*"
|
||||
_match="${SPL_META_NAME}-${SPL_META_VERSION}"
|
||||
_alias=$(git describe --match=${_match} 2>/dev/null)
|
||||
_release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
|
||||
if test -n "${_release}"; then
|
||||
|
Loading…
Reference in New Issue
Block a user