mirror of https://git.wownero.com/dsc/mxe.git
github: improve filtering and docs
This commit is contained in:
parent
4ed90733c9
commit
a653b25d32
|
@ -1255,7 +1255,7 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
To track normal release tags set:
|
To track normal release tags set:
|
||||||
<pre>$(PKG)_GH_CONF := owner/repo[, tag prefix, tag suffix, tag filter, version separator]</pre>
|
<pre>$(PKG)_GH_CONF := owner/repo[, tag prefix, tag suffix, tag filter-out, version separator]</pre>
|
||||||
To track branches, set:
|
To track branches, set:
|
||||||
<pre>$(PKG)_GH_CONF := owner/repo/branch</pre>
|
<pre>$(PKG)_GH_CONF := owner/repo/branch</pre>
|
||||||
See the following packages for examples:
|
See the following packages for examples:
|
||||||
|
|
|
@ -40,7 +40,7 @@ GITHUB_SHA_LENGTH := 7
|
||||||
# a version string and bypass `sort -V`
|
# a version string and bypass `sort -V`
|
||||||
#
|
#
|
||||||
# Track tags - Archive API
|
# Track tags - Archive API
|
||||||
# GH_CONF := owner/repo, tag prefix, tag suffix, tag filter, version separator
|
# GH_CONF := owner/repo, tag prefix, tag suffix, tag filter-out, version separator
|
||||||
# updates will construct a version number based on:
|
# updates will construct a version number based on:
|
||||||
# <tag prefix><s/<version sep>/./version><tag suffix>
|
# <tag prefix><s/<version sep>/./version><tag suffix>
|
||||||
|
|
||||||
|
@ -103,12 +103,11 @@ define MXE_GET_GH_TAGS
|
||||||
| $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p'
|
| $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p'
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# called with owner/repo, tag prefix, tag suffix, filter, version sep
|
# called with owner/repo, tag prefix, tag suffix, filter-out, version sep
|
||||||
define MXE_GET_GH_TAG
|
define MXE_GET_GH_TAG
|
||||||
$(MXE_GET_GH_TAGS) \
|
$(MXE_GET_GH_TAGS) \
|
||||||
| $(if $(4),grep -v '$(strip $(4))') \
|
| $(if $(4),grep -v '$(strip $(4))') \
|
||||||
| $(SED) 's,^$(strip $(2)),,g' \
|
| $(SED) -n 's,^$(strip $(2))\([^"]*\)$(strip $(3))$$,\1,p' \
|
||||||
| $(SED) 's,$(strip $(3))$$,,g' \
|
|
||||||
| tr '$(strip $(5))' '.' \
|
| tr '$(strip $(5))' '.' \
|
||||||
| $(SORT) -V
|
| $(SORT) -V
|
||||||
| tail -1
|
| tail -1
|
||||||
|
|
Loading…
Reference in New Issue