autoconf: allow Release to contain hyphen
To avoid clashing with tags and releases, we'll use "zfs-macOS". Meta: 1 Name: zfs-macOS Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Jorgen Lundman <lundman@lundman.net> Closes #12437
This commit is contained in:
parent
c27c124a88
commit
157a4d05bd
|
@ -73,14 +73,14 @@ AC_DEFUN([ZFS_AC_META], [
|
||||||
if test ! -f ".nogitrelease" && 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="${ZFS_META_NAME}-${ZFS_META_VERSION}"
|
_match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
|
||||||
_alias=$(git describe --match=${_match} 2>/dev/null)
|
_alias=$(git describe --match=${_match} 2>/dev/null)
|
||||||
_release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
|
_release=$(echo ${_alias}|sed "s/${ZFS_META_NAME}//"|cut -f3- -d'-'|sed 's/-/_/g')
|
||||||
if test -n "${_release}"; then
|
if test -n "${_release}"; then
|
||||||
ZFS_META_RELEASE=${_release}
|
ZFS_META_RELEASE=${_release}
|
||||||
_zfs_ac_meta_type="git describe"
|
_zfs_ac_meta_type="git describe"
|
||||||
else
|
else
|
||||||
_match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
|
_match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
|
||||||
_alias=$(git describe --match=${_match} 2>/dev/null)
|
_alias=$(git describe --match=${_match} 2>/dev/null)
|
||||||
_release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
|
_release=$(echo ${_alias}|sed 's/${ZFS_META_NAME}//'|cut -f3- -d'-'|sed 's/-/_/g')
|
||||||
if test -n "${_release}"; then
|
if test -n "${_release}"; then
|
||||||
ZFS_META_RELEASE=${_release}
|
ZFS_META_RELEASE=${_release}
|
||||||
_zfs_ac_meta_type="git describe"
|
_zfs_ac_meta_type="git describe"
|
||||||
|
|
Loading…
Reference in New Issue