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

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

Date: Wed, 26 Mar 2014 13:38:04 -0300

To: Tomi Ollila, notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: David Bremner


Tomi Ollila <tomi.ollila@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

Thread: