On Fri, 2018-09-07 at 17:13 +0100, Bruce Richardson wrote: > 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 '@examp > > > > le > > > > 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
exec > works and checkbashism is also happy with it, so used that in v2 -- Kind regards, Luca Boccassi