reduce number of curl calls

This commit is contained in:
Thomas Bernard 2022-07-30 13:14:29 +02:00 committed by Adrien Destugues
parent f7c79aaf75
commit c2ca597c7d

4
3rdparty/Makefile vendored
View File

@ -114,7 +114,7 @@ TIFFSIGURL = $(TIFFURL).sig
TIFFURLALT = $(LIBTIFFURLALT)
TIFFPATCHES = $(LIBTIFFPATCHES)
ZLIBVER=$(LATESTZLIBVER)
LATESTZLIBVER = $(shell curl -s -S https://www.zlib.net/ChangeLog.txt |grep "Changes in" |head -n1|sed 's/Changes in \([0-9.]*\).*/\1/')
LATESTZLIBVER := $(shell curl -s -S https://www.zlib.net/ChangeLog.txt |grep "Changes in" |head -n1|sed 's/Changes in \([0-9.]*\).*/\1/')
ZLIB=zlib-$(ZLIBVER)
ZLIBARCH=$(ZLIB).tar.gz
ZLIBSIG=$(ZLIBARCH).asc
@ -128,7 +128,7 @@ FREETYPESIG=$(FREETYPEARCH).sig
FREETYPEURL=https://download.savannah.gnu.org/releases/freetype/$(FREETYPEARCH)
FREETYPEURLALT=https://sourceforge.net/projects/freetype/files/freetype2/$(FREETYPEVER)/$(FREETYPEARCH)
FREETYPESIGURL=$(FREETYPEURL).sig
LATESTFREETYPEVER = $(shell curl -s -S -I "https://sourceforge.net/projects/freetype/files/latest/download" |grep -i '^location:' | sed 's:.*/\([0-9.]*\)/.*:\1:' )
LATESTFREETYPEVER := $(shell curl -s -S -I "https://sourceforge.net/projects/freetype/files/latest/download" |grep -i '^location:' | sed 's:.*/\([0-9.]*\)/.*:\1:' )
LUAVER=5.3.6
LUA=lua-$(LUAVER)
LUAARCH=$(LUA).tar.gz