Makefile: remove MXE_GET_GITHUB functions

This commit is contained in:
Tony Theodore 2018-03-15 01:03:00 +11:00
parent edc114de98
commit e96df609c0
2 changed files with 0 additions and 22 deletions

View File

@ -180,25 +180,6 @@ MAKE_SHARED_FROM_STATIC = \
--libdir '$(PREFIX)/$(TARGET)/lib' \
--bindir '$(PREFIX)/$(TARGET)/bin'
# MXE_GET_GITHUB functions can be removed once all packages use GH_CONF
define MXE_GET_GITHUB_SHA
$(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/heads/$(strip $(2))' \
| $(SED) -n 's#.*"sha": "\([^"]\{10\}\).*#\1#p' \
| head -1
endef
define MXE_GET_GITHUB_ALL_TAGS
$(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/tags/' \
| $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p'
endef
define MXE_GET_GITHUB_TAGS
$(call MXE_GET_GITHUB_ALL_TAGS, $(1)) \
| $(SED) 's,^$(strip $(2)),,g' \
| $(SORT) -V \
| tail -1
endef
define AUTOTOOLS_CONFIGURE
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
$(MXE_CONFIGURE_OPTS)

View File

@ -17,9 +17,6 @@
# Tarball:
# url = <owner>/<repo>/tarball/<ref>/output-file.tar.gz
# dir = <owner>-<repo>-<short sha>
#
# TODO: update remaining packages
# grep -l 'MXE_GET_GITHUB\|api.github.com\|github.com.*archive|github.com.*tarball|github.com.*releases' src/*.mk | xargs grep -L 'GH_CONF'
# Filename doesn't matter as we stream the url to a name of our choosing.
#