From patchwork Fri Jan 3 16:02:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas De Schampheleire X-Patchwork-Id: 306610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 2B6052C00A2 for ; Sat, 4 Jan 2014 03:03:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 694168B070; Fri, 3 Jan 2014 16:03:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mV963ggtdO4t; Fri, 3 Jan 2014 16:03:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A24FA8AFBD; Fri, 3 Jan 2014 16:03:14 +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 8DBF01BF845 for ; Fri, 3 Jan 2014 16:03:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 863778B28E for ; Fri, 3 Jan 2014 16:03:10 +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 7x1VrCpP0ZIE for ; Fri, 3 Jan 2014 16:03:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by whitealder.osuosl.org (Postfix) with ESMTPS id D89FD8B294 for ; Fri, 3 Jan 2014 16:03:09 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id e51so5771888eek.20 for ; Fri, 03 Jan 2014 08:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:content-transfer-encoding:subject :message-id:in-reply-to:references:user-agent:date:from:to; bh=996sVtS/JsQB/ksElJ9O/MOE+KTzObqN+UNCY6SnUHM=; b=gccaR7kHathH6zaNMky4wrZlONrNVkiC8fGoNJkZg2fkdsEEQ+dfMZ5xHNJq7t48jV lQu+HdEMLaRRGSNZsQtLYIfU0L4o0L1h8xKf7ERpyyFPvznrIe0p5gXbkn1OgdHmbe93 HAoj185cNztvonRKcIFn4yOVpS/R+KXEWWBjqNvPjuqUZyAXIqac23k8qjAHXnnZjY7D WxGp++OA09w+ZnKG3ZNeQ3iYmhhY2DbY4yMZCRAyGKDTMOGG+QEL1uzOqGfhgqvg5iWd 3xGyTlnai2l6v/rGtYHWAhyHEAyjuG12z05WYMbEb1P8YSlQ0R8VDjvADw8+YZ83spYK GYhQ== X-Received: by 10.15.48.70 with SMTP id g46mr45762eew.116.1388764988450; Fri, 03 Jan 2014 08:03:08 -0800 (PST) Received: from [127.0.1.1] (d54C62EEB.access.telenet.be. [84.198.46.235]) by mx.google.com with ESMTPSA id p45sm146082466eeg.1.2014.01.03.08.03.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Jan 2014 08:03:07 -0800 (PST) MIME-Version: 1.0 X-Mercurial-Node: aede5cd8614f3dd67a21040b011e47fffb73a3f2 Message-Id: In-Reply-To: References: User-Agent: Mercurial-patchbomb/2.2.2 Date: Fri, 03 Jan 2014 17:02:52 +0100 From: Thomas De Schampheleire To: buildroot@busybox.net Subject: [Buildroot] [PATCH 3 of 5 v3] manual package list: add symbol name in table 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Particularly in the list of deprecated packages, it is not always clear what the entry name refers to. For example, for squashfs3 rootfs support, the string is simply "3.x". Likewise for the flex target binary: "Install tool in the target". To clarify the entries, add the actual symbol name (BR2_xxx) in the table. Signed-off-by: Thomas De Schampheleire --- support/scripts/gen-manual-lists.py | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/support/scripts/gen-manual-lists.py b/support/scripts/gen-manual-lists.py --- a/support/scripts/gen-manual-lists.py +++ b/support/scripts/gen-manual-lists.py @@ -124,20 +124,20 @@ def format_asciidoc_table(root, get_labe :param sub_menu: Output the column with the sub-menu path """ - def _format_entry(item, parents, sub_menu): + def _format_entry(item, symbol, parents, sub_menu): """ Format an asciidoc table entry. """ if sub_menu: - return "| {0:<40} <| {1}\n".format(item, " -> ".join(parents)) + return "| {0:<40} <| {1} | {2}\n".format(item, symbol, " -> ".join(parents)) else: - return "| {0:<40}\n".format(item) + return "| {0:<40} | {1}\n".format(item, symbol) lines = [] for item in get_symbol_subset(root, filter_func): if not item.is_symbol() or not item.prompts: continue loc = get_symbol_parents(item, root, enable_choice=enable_choice) - lines.append(_format_entry(get_label_func(item), loc, sub_menu)) + lines.append(_format_entry(get_label_func(item), item.get_name(), loc, sub_menu)) if sorted: lines.sort(key=lambda x: x.lower()) if hasattr(root, "get_title"): @@ -147,16 +147,17 @@ def format_asciidoc_table(root, get_labe loc_label = ["Location"] if not item_label: item_label = "Items" + symbol_label = "Symbol" table = ":halign: center\n\n" if sub_menu: width = "100%" - columns = "^1,4" + columns = "^1,1,4" else: - width = "30%" - columns = "^1" + width = "60%" + columns = "^1,1" table = "[width=\"{0}\",cols=\"{1}\",options=\"header\"]\n".format(width, columns) table += "|===================================================\n" - table += _format_entry(item_label, loc_label, sub_menu) + table += _format_entry(item_label, symbol_label, loc_label, sub_menu) table += "\n" + "".join(lines) + "\n" table += "|===================================================\n" return table