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: 9382021 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 713CD60839 for ; Tue, 18 Oct 2016 12:14:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61DFE29599 for ; Tue, 18 Oct 2016 12:14:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 562B92959C; Tue, 18 Oct 2016 12:14:11 +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=ham 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 D48DC29599 for ; Tue, 18 Oct 2016 12:14:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13F756E6D3; Tue, 18 Oct 2016 12:14:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x244.google.com (mail-qk0-x244.google.com [IPv6:2607:f8b0:400d:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 99C8B6E6D7 for ; Tue, 18 Oct 2016 12:14:05 +0000 (UTC) Received: by mail-qk0-x244.google.com with SMTP id f128so15889538qkb.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=Cks0iZq051sfgD8nOcYAvNsQl1a02P8lHVTHsLDFqbhqRGFHwnBPVYvnuBlCs9kmN9 TeyRTf3E+O2HztCQwTcyCpGo4zvfaKbfkS1KKSAMVsPJGOXzwlXc1f8CSvBfWL/pU9wI 8lADJ2kD0DfYJJfzbuHgvNa3sEO/RW40UD0WHFyPkeFin2AM4m8SfotRubdv78TbP9lL SaJYLcC5dOcsl5mylwCH3FgazrPcsLl3C4GI+gbftJWGSm2P+oKhn7mmvfLe1GC7zDp3 hCSozODYo+0Q7YPBbkOh+5SFJcPNbshS9CCfwTsk59816ApfUq1kXpIVnAIIgi6HdhDB i/nA== X-Gm-Message-State: AA6/9Rk8UTgNrMhsD+qUhO2kP3gLbWbROq41DU43Tja92w43E9cmaqkE+hxu4p1OY0BiSw== 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 Subject: [PATCH 02/10] dim: Autocheck for up-to-dateness 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 ()