Skip to content

Commit 4206a50

Browse files
committed
Upstream: allow Release to contain hyphen
1 parent cf72518 commit 4206a50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/zfs-meta.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ AC_DEFUN([ZFS_AC_META], [
7373
if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
7474
_match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
7575
_alias=$(git describe --match=${_match} 2>/dev/null)
76-
_release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
76+
_release=$(echo ${_alias}|sed "s/${ZFS_META_NAME}//"|cut -f3- -d'-'|sed 's/-/_/g')
7777
if test -n "${_release}"; then
7878
ZFS_META_RELEASE=${_release}
7979
_zfs_ac_meta_type="git describe"
8080
else
8181
_match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
8282
_alias=$(git describe --match=${_match} 2>/dev/null)
83-
_release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
83+
_release=$(echo ${_alias}|sed 's/${ZFS_META_NAME}//'|cut -f3- -d'-'|sed 's/-/_/g')
8484
if test -n "${_release}"; then
8585
ZFS_META_RELEASE=${_release}
8686
_zfs_ac_meta_type="git describe"

0 commit comments

Comments
 (0)