History

Makefile: remove MXE_GET_GITHUB functions

Tony Theodore committed 8 years ago

Commit e96df601 parent edc114d2 files · +0 −22Browse files

Unified · Split

2 files
  1. Makefile +0 −19
  2. mxe.github.mk +0 −3
Makefile+0−19
@@ -180,25 +180,6 @@ MAKE_SHARED_FROM_STATIC = \ · 179 unmodified lines
180 --libdir '$(PREFIX)/$(TARGET)/lib' \180 --libdir '$(PREFIX)/$(TARGET)/lib' \
181 --bindir '$(PREFIX)/$(TARGET)/bin'181 --bindir '$(PREFIX)/$(TARGET)/bin'
182 182
183# MXE_GET_GITHUB functions can be removed once all packages use GH_CONF
184define MXE_GET_GITHUB_SHA
185 $(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/heads/$(strip $(2))' \
186 | $(SED) -n 's#.*"sha": "\([^"]\{10\}\).*#\1#p' \
187 | head -1
188endef
189
190define MXE_GET_GITHUB_ALL_TAGS
191 $(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/tags/' \
192 | $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p'
193endef
194
195define MXE_GET_GITHUB_TAGS
196 $(call MXE_GET_GITHUB_ALL_TAGS, $(1)) \
197 | $(SED) 's,^$(strip $(2)),,g' \
198 | $(SORT) -V \
199 | tail -1
200endef
201
202define AUTOTOOLS_CONFIGURE183define AUTOTOOLS_CONFIGURE
203 cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \184 cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
204 $(MXE_CONFIGURE_OPTS)185 $(MXE_CONFIGURE_OPTS)
mxe.github.mk+0−3
@@ -17,9 +17,6 @@ · 16 unmodified lines
17# Tarball:17# Tarball:
18# url = <owner>/<repo>/tarball/<ref>/output-file.tar.gz18# url = <owner>/<repo>/tarball/<ref>/output-file.tar.gz
19# dir = <owner>-<repo>-<short sha>19# dir = <owner>-<repo>-<short sha>
20#
21# TODO: update remaining packages
22# grep -l 'MXE_GET_GITHUB\|api.github.com\|github.com.*archive|github.com.*tarball|github.com.*releases' src/*.mk | xargs grep -L 'GH_CONF'
23 20
24# Filename doesn't matter as we stream the url to a name of our choosing.21# Filename doesn't matter as we stream the url to a name of our choosing.
25#22#

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t