From patchwork Thu Jan 28 13:27:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 8150241 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 202FF9F6DA for ; Thu, 28 Jan 2016 13:28:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5EA4D20364 for ; Thu, 28 Jan 2016 13:28:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6EB892035B for ; Thu, 28 Jan 2016 13:28:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E2DB46E884; Thu, 28 Jan 2016 05:28:17 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 34FAF6E884 for ; Thu, 28 Jan 2016 05:28:16 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 28 Jan 2016 05:28:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,358,1449561600"; d="scan'208";a="903003552" Received: from jnikula-mobl.fi.intel.com (HELO localhost) ([10.237.72.67]) by fmsmga002.fm.intel.com with ESMTP; 28 Jan 2016 05:28:12 -0800 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Date: Thu, 28 Jan 2016 15:27:08 +0200 Message-Id: <6776525d7edfa731aa97c4b37ab64972f08e416a.1453985388.git.jani.nikula@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: jani.nikula@intel.com Subject: [Intel-gfx] [maintainer-tools PATCH v2 14/33] dim: add alias command to list aliases 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Helpful convenience. Signed-off-by: Jani Nikula --- dim | 7 +++++++ dim.rst | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/dim b/dim index 98b090eadf33..651ee5882ca3 100755 --- a/dim +++ b/dim @@ -743,6 +743,13 @@ function assert_branch fi } +function dim_alias +{ + # use posix mode to omit functions in set output + ( set -o posix; set ) | grep "^dim_alias_[a-zA-Z0-9_]*=" |\ + sed 's/^dim_alias_/\t/;s/=/\t/' +} + # dim subcommand aliases dim_alias_af=apply-fixes dim_alias_ai=apply-igt diff --git a/dim.rst b/dim.rst index 7b8930269aa8..61bec7f29731 100644 --- a/dim.rst +++ b/dim.rst @@ -273,6 +273,11 @@ for-each-workdir|fw *command* Run the given command in all active workdirs including the main repository under \$DIM_DRM_INTEL. +alias +----- + +List all aliases for the subcommand names. + help ---- Show this help. Install **rst2man(1)** for best results.