]> git.proxmox.com Git - mirror_spl.git/blobdiff - config/spl-meta.m4
Fix automatically generated release number
[mirror_spl.git] / config / spl-meta.m4
index 0561fbbc580ec2d23b6e9076ea105cc2630e0676..fbfaec4ab5192267dfbb7e4bcfae3e8919774eb4 100644 (file)
@@ -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