1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

USE_GITHUB: Tighten the GH_TAGNAME stripping of 'v' from r382120 to only do so

for v[0-9] as Github does. If a tag is 'v.1' github will return that exact value.
This also fixed named tags that are word starting with 'v'.

PR:		198869
With hat:	portmgr
Reported by:	antoine
This commit is contained in:
Bryan Drewery 2015-03-24 18:15:17 +00:00
parent ed895ea63e
commit 266f7e411b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382149

View File

@ -570,7 +570,7 @@ DISTNAME:= ${DISTNAME}_GH${_GITHUB_REV}
GH_TAGNAME_SANITIZED= ${GH_TAGNAME:S,/,-,}
# Github silently converts tags starting with v to not have v in the filename
# and extraction directory.
GH_TAGNAME_EXTRACT= ${GH_TAGNAME_SANITIZED:S/^v//}
GH_TAGNAME_EXTRACT= ${GH_TAGNAME_SANITIZED:C/^v([0-9])/\1/}
. endif
.endif
.endif