X-Git-Url: https://git.proxmox.com/?p=mirror_spl.git;a=blobdiff_plain;f=config%2Fspl-meta.m4;h=fbfaec4ab5192267dfbb7e4bcfae3e8919774eb4;hp=0561fbbc580ec2d23b6e9076ea105cc2630e0676;hb=8acfb2bcc118555fed2c0902c33d300a57630368;hpb=cb81c0c5887ffd6d862b13bca594d522e3f8673c diff --git a/config/spl-meta.m4 b/config/spl-meta.m4 index 0561fbb..fbfaec4 100644 --- a/config/spl-meta.m4 +++ b/config/spl-meta.m4 @@ -63,6 +63,14 @@ AC_DEFUN([SPL_AC_META], [ if test -n "${_release}"; then SPL_META_RELEASE=${_release} _spl_ac_meta_type="git describe" + else + _match="${SPL_META_NAME}-${SPL_META_VERSION}-${SPL_META_RELEASE}" + _alias=$(git describe --match=${_match} 2>/dev/null) + _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') + if test -n "${_release}"; then + SPL_META_RELEASE=${_release} + _spl_ac_meta_type="git describe" + fi fi fi