X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-databases%2FMakefile.local;h=7aedff70f6e3df4114f62d32f605d37645d851ca;hp=0572e784ee7389281320b056fd1da0c262991861;hb=d877240f4e097eb3dd477409a24155c10e0b3c17;hpb=8413582b6edc859285d68c9f7ad83236788567c0 diff --git a/test/test-databases/Makefile.local b/test/test-databases/Makefile.local index 0572e784..7aedff70 100644 --- a/test/test-databases/Makefile.local +++ b/test/test-databases/Makefile.local @@ -1,14 +1,20 @@ # -*- makefile -*- -TEST_DATABASE_MIRROR=http://notmuchmail.org/releases/test-databases +TEST_DATABASE_MIRROR=https://notmuchmail.org/releases/test-databases dir := test/test-databases test_databases := $(dir)/database-v1.tar.xz %.tar.xz: - wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@); + @exec 1>&2 ;\ + if command -v wget >/dev/null ;\ + then set -x; wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\ + elif command -v curl >/dev/null ;\ + then set -x; curl -L -s -o $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\ + else echo Cannot fetch databases, no wget nor curl available; exit 1 ;\ + fi download-test-databases: ${test_databases} -DISTCLEAN := $(DISTCLEAN) ${test_databases} +DATACLEAN := $(DATACLEAN) ${test_databases}