From patchwork Tue Apr 4 13:59:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 9661769 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 694AA6032D for ; Tue, 4 Apr 2017 13:59:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FA71283BA for ; Tue, 4 Apr 2017 13:59:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34975284BA; Tue, 4 Apr 2017 13:59: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 EA928283BA for ; Tue, 4 Apr 2017 13:59:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6CF356E5C2; Tue, 4 Apr 2017 13:59:10 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 755376E5C2 for ; Tue, 4 Apr 2017 13:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491314349; x=1522850349; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=OHF1WrvHC48kTBI8596HPVnAcCrB3jUwQyYThJ/jpc8=; b=dbnZFXk0act6xNjTvsK++N1jj2UOIxkE/ZWvAImSNVoN8rLO2ya3QWbP mjTf4CwjhjXYPsUAEPW2nZVEIW9rhQ==; Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2017 06:59:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,275,1486454400"; d="scan'208";a="841650518" Received: from jnikula-mobl.fi.intel.com (HELO localhost) ([10.237.72.162]) by FMSMGA003.fm.intel.com with ESMTP; 04 Apr 2017 06:59:08 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Date: Tue, 4 Apr 2017 16:59:01 +0300 Message-Id: <1491314342-7122-3-git-send-email-jani.nikula@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1491314342-7122-1-git-send-email-jani.nikula@intel.com> References: <1491314342-7122-1-git-send-email-jani.nikula@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: jani.nikula@intel.com Subject: [Intel-gfx] [dim PATCH 3/4] dim: move helper functions above command line options handling 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 The functions have been added kind of in the middle at some point. Clean it up. Signed-off-by: Jani Nikula --- dim | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dim b/dim index a76e4e4d3f09..45dc07cd0426 100755 --- a/dim +++ b/dim @@ -114,16 +114,6 @@ function read_integration_config } read_integration_config -# -# Command line options. -# - -DRY_RUN= -INTERACTIVE= -DRY= -FORCE= -HELP= - function echoerr { echo "$dim: $*" >&2 @@ -145,6 +135,16 @@ function pause echo } +# +# Command line options. +# + +DRY_RUN= +INTERACTIVE= +DRY= +FORCE= +HELP= + while getopts hdfis opt; do case "$opt" in d)