[PATCH 1/1] test-databases: use wget or curl to download test databases

David Bremner david at tethera.net
Wed Mar 26 09:38:04 PDT 2014


Tomi Ollila <tomi.ollila at iki.fi> writes:

>  %.tar.xz:
> -	wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@);
> +	@exec 1>&2 ;: consistently write everything to stderr... ;\
> +	if hash wget 2>/dev/null ;\
> +	then set -x; wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\
> +	elif hash curl 2>/dev/null ;\
> +	then set -x; curl -s -o $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\
> +	else echo Cannot fetch databases, no wget nor curl available; exit 1 ;\
> +	fi

Is this maybe a job for configure?

d


More information about the notmuch mailing list