Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 2/6] manual: add package-list.txt generation support
@ 2012-11-29  7:47 Samuel Martin
  2012-11-29  7:47 ` [Buildroot] [PATCH v2 3/6] manual: add deprecated-list.txt " Samuel Martin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Samuel Martin @ 2012-11-29  7:47 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---

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 <s.martin49@gmail.com>
+##
+## 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
-- 
1.8.0.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-29 22:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29  7:47 [Buildroot] [PATCH v2 2/6] manual: add package-list.txt generation support Samuel Martin
2012-11-29  7:47 ` [Buildroot] [PATCH v2 3/6] manual: add deprecated-list.txt " Samuel Martin
2012-11-29 22:41   ` Arnout Vandecappelle
2012-11-29  7:47 ` [Buildroot] [PATCH v2 6/6] manual: add generated *-list.txt Samuel Martin
2012-11-29 22:42   ` Arnout Vandecappelle
2012-11-29 20:48 ` [Buildroot] [PATCH v2 2/6] manual: add package-list.txt generation support Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox