From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnout Vandecappelle Date: Thu, 29 Nov 2012 21:48:31 +0100 Subject: [Buildroot] [PATCH v2 2/6] manual: add package-list.txt generation support In-Reply-To: <1354175268-6909-1-git-send-email-s.martin49@gmail.com> References: <1354175268-6909-1-git-send-email-s.martin49@gmail.com> Message-ID: <50B7CA1F.2010504@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 29/11/12 08:47, Samuel Martin wrote: > > Signed-off-by: Samuel Martin Acked-by: Arnout Vandecappelle (Essensium/Mind) (untested) But since I'm pedantic, I still have some comments :-) [snip] > diff --git a/support/scripts/gen-manual-pkg-list.sh b/support/scripts/gen-manual-pkg-list.sh > new file mode 100755 > index 0000000..f11b4de > --- /dev/null > +++ b/support/scripts/gen-manual-pkg-list.sh > @@ -0,0 +1,19 @@ > +#!/bin/sh > +## > +## gen-manual-pkg-list.sh > +## > +## Author(s): > +## - Samuel MARTIN > +## > +## Copyright (C) 2012 Samuel MARTIN If you add a copyright statement, ideally you should also refer to the GPL: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. (The fact that you put the Copyright statement there makes it look as if it's proprietary. Adding the GPL reference disambiguates it. Of course, it is implied by the global buildroot license even if you leave out the GPL reference.) > +## > + > +# Generate the manual package-list.txt content (in asciidoc format) and print it > +# to the standard output. > + > +printf "\n//\n// Autogenerated file\n//\n\n" > +printf "[[package-list]]\n" > +printf "Available packages\n" > +printf -- "------------------\n\n" Since this is now part of a script, you can just cat a here document. Much more readable. > +grep -rlE --color=never '\((autotools|cmake|generic)-package\)' package | \ We globally unexport GREP_OPTIONS, so the --color=never is redundant. In addition, it would barf on non-gnu-grep. Regards, Arnout > + sed -ne '/.*\/\(.*\).mk$/ s//* \1/p' | sort -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F