From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 71C724C8D for ; Fri, 7 Sep 2018 18:13:31 +0200 (CEST) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Sep 2018 09:13:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,343,1531810800"; d="scan'208";a="68336657" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.5.248]) by fmsmga007.fm.intel.com with SMTP; 07 Sep 2018 09:13:23 -0700 Received: by (sSMTP sendmail emulation); Fri, 07 Sep 2018 17:13:22 +0100 Date: Fri, 7 Sep 2018 17:13:22 +0100 From: Bruce Richardson To: Luca Boccassi Cc: Thomas Monjalon , dev@dpdk.org, john.mcnamara@intel.com, marko.kovacevic@intel.com Message-ID: <20180907161322.GA24984@bricha3-MOBL.ger.corp.intel.com> References: <20180831182055.30772-1-bluca@debian.org> <20180831182055.30772-2-bluca@debian.org> <1746678.vtfpdfx8nV@xps> <1535965627.11823.37.camel@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1535965627.11823.37.camel@debian.org> Organization: Intel Research and Development Ireland Ltd. User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-dev] [PATCH 1/4] mk: use script to generate examples.dox X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2018 16:13:31 -0000 On Mon, Sep 03, 2018 at 10:07:07AM +0100, Luca Boccassi wrote: > On Mon, 2018-09-03 at 02:54 +0200, Thomas Monjalon wrote: > > 31/08/2018 20:20, Luca Boccassi: > > > +# SC2129 - avoid multiple individual redirects > > > > What is SC2129 ? > > shellcheck - will clarify in v2 > > > > +{ \ > > > +    printf '/**\n'; \ > > > +    printf '@page examples DPDK Example Programs\n\n'; \ > > > +    find "${EXAMPLES_DIR}" -type f -name '*.c' -printf '@example > > > examples/%P\n' | LC_ALL=C sort; \ > > > +    printf '*/\n'; \ > > > +} > "${API_EXAMPLES}" > > > > Why using backslashes (continuation lines)? > > Good point, will remove in v2 > Agree, rather than using continuation lines, I suggest one of the following: * use exec > ${API_EXAMPLES} at the top of the script * let the script just print to stdout and have make/meson put that in the output file for you. /Bruce