From: David Bremner Date: Wed, 26 Mar 2014 16:38:04 +0000 (+2100) Subject: Re: [PATCH 1/1] test-databases: use wget or curl to download test databases X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=552e617fbaf87d057893a4645c8ad23b08babd46;p=notmuch-archives.git Re: [PATCH 1/1] test-databases: use wget or curl to download test databases --- diff --git a/4b/2d1fc18a0ffe7a71e40669c97595c02d2b1807 b/4b/2d1fc18a0ffe7a71e40669c97595c02d2b1807 new file mode 100644 index 000000000..205478d8b --- /dev/null +++ b/4b/2d1fc18a0ffe7a71e40669c97595c02d2b1807 @@ -0,0 +1,68 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 05134431FBD + for ; Wed, 26 Mar 2014 09:38:18 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id whbL9A25uf-j for ; + Wed, 26 Mar 2014 09:38:11 -0700 (PDT) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 332D6431FAF + for ; Wed, 26 Mar 2014 09:38:11 -0700 (PDT) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1WSqq7-0003sv-FB; Wed, 26 Mar 2014 13:38:07 -0300 +Received: (nullmailer pid 31644 invoked by uid 1000); Wed, 26 Mar 2014 + 16:38:04 -0000 +From: David Bremner +To: Tomi Ollila , notmuch@notmuchmail.org +Subject: Re: [PATCH 1/1] test-databases: use wget or curl to download test + databases +In-Reply-To: <1395846591-3490-1-git-send-email-tomi.ollila@iki.fi> +References: <1395846591-3490-1-git-send-email-tomi.ollila@iki.fi> +User-Agent: Notmuch/0.16+164~gfcbf06a (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Wed, 26 Mar 2014 13:38:04 -0300 +Message-ID: <87a9ccx6dv.fsf@tethera.net> +MIME-Version: 1.0 +Content-Type: text/plain +Cc: tomi.ollila@iki.fi +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 26 Mar 2014 16:38:18 -0000 + +Tomi Ollila 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