mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 11:40:25 +03:00
Support .nogitrelease file
When building a custom release in a git tree provide the ability to prevent the release field from being overwritten by the `git describe` output. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue zfsonlinux/zfs#1402
This commit is contained in:
parent
c1b20ce320
commit
2c21370746
@ -56,7 +56,7 @@ AC_DEFUN([SPL_AC_META], [
|
||||
fi
|
||||
|
||||
SPL_META_RELEASE=_SPL_AC_META_GETVAL([Release]);
|
||||
if git rev-parse --git-dir > /dev/null 2>&1; then
|
||||
if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
|
||||
_match="${SPL_META_NAME}-${SPL_META_VERSION}*"
|
||||
_alias=$(git describe --match=${_match} 2>/dev/null)
|
||||
_release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
|
||||
|
Loading…
Reference in New Issue
Block a user