From patchwork Thu Nov 29 07:47:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 202672 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 0E4562C008E for ; Thu, 29 Nov 2012 18:48:05 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D0D0230CD6; Thu, 29 Nov 2012 07:48:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yCG78tSIWFht; Thu, 29 Nov 2012 07:48:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AC91B30CBA; Thu, 29 Nov 2012 07:48:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 75CE38F74A for ; Thu, 29 Nov 2012 07:48:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D654F8A106 for ; Thu, 29 Nov 2012 07:48:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AfSD26v49swB for ; Thu, 29 Nov 2012 07:48:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bk0-f43.google.com (mail-bk0-f43.google.com [209.85.214.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2C7068A0CD for ; Thu, 29 Nov 2012 07:47:59 +0000 (UTC) Received: by mail-bk0-f43.google.com with SMTP id jf20so6894492bkc.16 for ; Wed, 28 Nov 2012 23:47:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=jKu7+0R8csgKIYxYY4Ij5zfcUH0/AhC3cNYrgrZvTDk=; b=Pd2Spu51Xv2tM4vyNVNM42pA/Jmv7PxXb4hBVzbaHzaN/9wL5hxqjnRWF80mETry50 glWmrE5FOyXqkJxSCgGlG5IOF+vZCGTh/EMa4Ff/PVIvDd5zGu2TTDDi81rd7bonNoTI yAKzsAfwE9+r+EJ3y4mX5XPyOkIMfzVph/2Md2FNrGR4+9BekFxWFoPvvzzgofqAC9NF /s4R6oxt1AKIoLmPa0LcQMwJRM2ddHba1VA0iyrIii+AQlT8jAZm4vOs81ASzOqXqDCt bu6v+hzMjvZlqTm189Mp6btcv2gAik7aQZXDG4J0JflMzlGACVvwVPLF4NtukjMaxNvt eFCA== Received: by 10.204.127.27 with SMTP id e27mr6463538bks.126.1354175277910; Wed, 28 Nov 2012 23:47:57 -0800 (PST) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id v8sm212268bku.6.2012.11.28.23.47.56 (version=SSLv3 cipher=OTHER); Wed, 28 Nov 2012 23:47:56 -0800 (PST) From: Samuel Martin To: buildroot@busybox.net Date: Thu, 29 Nov 2012 08:47:46 +0100 Message-Id: <1354175268-6909-1-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.8.0.1 Subject: [Buildroot] [PATCH v2 2/6] manual: add package-list.txt generation support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Samuel Martin Acked-by: Arnout Vandecappelle (Essensium/Mind) --- Change since v1: * move the generation code in a script that is called in manual.mk (as suggested by Arnout) * remove unneeded comment in the generated output (as suggested by Arnout) --- docs/manual/manual.mk | 3 +++ support/scripts/gen-manual-pkg-list.sh | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 support/scripts/gen-manual-pkg-list.sh diff --git a/docs/manual/manual.mk b/docs/manual/manual.mk index aa20534..d8437ba 100644 --- a/docs/manual/manual.mk +++ b/docs/manual/manual.mk @@ -24,6 +24,9 @@ $$(O)/docs/$(1)/$(1).$(4): docs/$(1)/$(1).txt $$($(call UPPERCASE,$(1))_SOURCES) -D $$(@D) $$< endef +$(TOPDIR)/docs/manual/package-list.txt: + $(TOPDIR)/support/scripts/gen-manual-pkg-list.sh > $@ + ################################################################################ # GENDOC -- generates the make targets needed to build asciidoc documentation. # 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 +## + +# 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" +grep -rlE --color=never '\((autotools|cmake|generic)-package\)' package | \ + sed -ne '/.*\/\(.*\).mk$/ s//* \1/p' | sort