From patchwork Tue Oct 18 12:13:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9382025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B3A4D60839 for ; Tue, 18 Oct 2016 12:14:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4F1329599 for ; Tue, 18 Oct 2016 12:14:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99D3E2959C; Tue, 18 Oct 2016 12:14:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5AF3629599 for ; Tue, 18 Oct 2016 12:14:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF0F26E6D7; Tue, 18 Oct 2016 12:14:07 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com [IPv6:2607:f8b0:400d:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 93EAB6E6D6 for ; Tue, 18 Oct 2016 12:14:05 +0000 (UTC) Received: by mail-qk0-x243.google.com with SMTP id f128so15889536qkb.0 for ; Tue, 18 Oct 2016 05:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UrudPcxD30gbtuPNiPq+7t+DcDhC8s0Sf+RD532fNwA=; b=AE06i8abUPagW6hr20yPzsDFVS4/m6NLwuk/IwIrItBTCkvHqsWDJnOWkB8SYoXqU7 OrhA8QhHFfXvq0U/zFVgqQ9ri2wOrpV+NyxHy4mr55pl32P7DqEtXoRJ9tS/cqr3oQo/ vUiAY9ETqPM/DMd0dUApGVGMog3NZ74fcEoJ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UrudPcxD30gbtuPNiPq+7t+DcDhC8s0Sf+RD532fNwA=; b=KDkgHW6x4buSInd4IsSQ9tnZ8QCkztlh7iFcZVg08jUN3o8z8l+vqvDNm2FYdzr705 COPzvrKS5Ao4kkKnqip8g8MCu+0IiuCPLJARrfJI8eWGiIjWzoAyZHZDhgDydNYnwbOp lBHsqys7jaw7xVc/XE0z+8J0JjLN8tw9w3ALvk8lCktz/OJSYSH4U1xElebRRExlxnNg Ps0fJA6/ashgTJtzP3UZkpqRqVhdLbW75At7PakN7qX5z7vF3ldfZFdjLwPZ0n8A9IV5 tgH5DFtZYy4tQ7xA24XArq7vsoOx6phCf7dkmKa0qG2lt0Ptj2s+VySm1wxXZEtlAnAQ lQjQ== X-Gm-Message-State: AA6/9Rn7v0pJiYJOmXZaoEEpQFehIY6HQsmuMflSnOZ93KJPEVwHQG14T0PZmrSk87Mc3g== X-Received: by 10.194.157.9 with SMTP id wi9mr39468wjb.143.1476792844579; Tue, 18 Oct 2016 05:14:04 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id c7sm62390226wjk.19.2016.10.18.05.14.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Oct 2016 05:14:03 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Tue, 18 Oct 2016 14:13:48 +0200 Message-Id: <20161018121356.9594-2-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161018121356.9594-1-daniel.vetter@ffwll.ch> References: <20161018121356.9594-1-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , DRI Development , Daniel Vetter Subject: [Intel-gfx] [PATCH 02/10] dim: Autocheck for up-to-dateness X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Exits script to annoy people roughly every 100th time ... Also switch to the magic @{upstream} reference, in case the remote is not called origin (which is pretty normal in case of using git worktree). Signed-off-by: Daniel Vetter --- dim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dim b/dim index 57ad4fcf9767..192d6ee10838 100755 --- a/dim +++ b/dim @@ -176,13 +176,17 @@ function dim_uptodate exit 1 fi - if ! git --git-dir=$DIM_PREFIX/maintainer-tools/.git show origin/maintainer-tools:dim |\ + if ! git --git-dir=$DIM_PREFIX/maintainer-tools/.git show @{upstream}:dim |\ diff "$using" - >& /dev/null; then echo "$dim: not running upstream version of the script." >&2 exit 1 fi } +if [[ "$((`date +%s` % 100))" -eq "0" ]] ; then + dim_uptodate +fi + # get message id from file # $1 = file message_get_id ()