comparison Makefile.in @ 4541:23a905c6f5d3

adapt to wget's new --compression option
author John W. Eaton <jwe@octave.org>
date Tue, 21 Nov 2017 22:24:47 -0500
parents f3fb203b6fca
children 4bb667a87c7d
comparison
equal deleted inserted replaced
4540:2a8b5cf2085c 4541:23a905c6f5d3
204 204
205 INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install 205 INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
206 PATCH := $(shell gpatch --help >/dev/null 2>&1 && echo g)patch 206 PATCH := $(shell gpatch --help >/dev/null 2>&1 && echo g)patch
207 SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed 207 SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed
208 SORT := $(shell gsort --help >/dev/null 2>&1 && echo g)sort 208 SORT := $(shell gsort --help >/dev/null 2>&1 && echo g)sort
209 WGET := wget --no-check-certificate \ 209 ## The --compression option for wget is new in 1.19.2 and now without
210 ## using --compression=none, wget seems to uncompress .gz archives
211 ## automatically?!?
212 WGET_COMP := $(shell wget --compression=none --help >/dev/null && echo x--compression=none | $(SED) 's/x//')
213 WGET := wget $(WGET_COMP) --no-check-certificate \
210 --user-agent=$(shell wget --version | \ 214 --user-agent=$(shell wget --version | \
211 $(SED) -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p') 215 $(SED) -n 's,GNU \(Wget\) \([0-9.]*\).*,\1/\2,p')
212 # The MSYS GNU tar does not support long uid/gid, leading to unpacking 216 # The MSYS GNU tar does not support long uid/gid, leading to unpacking
213 # errors for some archives. Bsdtar does not have that limitation, so 217 # errors for some archives. Bsdtar does not have that limitation, so
214 # use it on Win32 platform if GNU tar fails to unpack the archive. 218 # use it on Win32 platform if GNU tar fails to unpack the archive.