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
180180 --libdir '$(PREFIX)/$(TARGET)/lib' \
181181 --bindir '$(PREFIX)/$(TARGET)/bin'
182182
183−# MXE_GET_GITHUB functions can be removed once all packages use GH_CONF
184−define 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
188−endef
189−
190−define 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'
193−endef
194−
195−define MXE_GET_GITHUB_TAGS
196− $(call MXE_GET_GITHUB_ALL_TAGS, $(1)) \
197− | $(SED) 's,^$(strip $(2)),,g' \
198− | $(SORT) -V \
199− | tail -1
200−endef
201−
202183 define AUTOTOOLS_CONFIGURE
203184 cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
204185 $(MXE_CONFIGURE_OPTS)
mxe.github.mk+0−3
@@ -17,9 +17,6 @@ · 16 unmodified lines
1717 # Tarball:
1818 # url = <owner>/<repo>/tarball/<ref>/output-file.tar.gz
1919 # 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'
2320
2421 # Filename doesn't matter as we stream the url to a name of our choosing.
2522 #

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