Changeset 5101


Ignore:
Timestamp:
Feb 9, 2010, 4:15:29 PM (5 years ago)
Author:
stepan
Message:

I took Rob Landley's nice "menuconfig2html.py" script from
http://landley.net/hg/kdocs and modified it to produce MediaWiki? output
for coreboot's Option List at http://coreboot.org/Coreboot_Options. The
attached patch exchanges our old ("newconfig") optionlist script with
the new one.

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Patrick Georgi <patrick.georgi@…>

Location:
trunk/util/optionlist
Files:
1 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/util/optionlist/Makefile

    r2463 r5101  
    11#
    2 # Copyright (C) 2005 Stefan Reinauer <stepan@coresystems.de>
     2# Copyright (C) 2010 coresystems GmbH
    33#
    44# This program is free software; you can redistribute it and/or modify
    55# it under the terms of the GNU General Public License as published by
    6 # the Free Software Foundation; either version 2 of the License, or
    7 # (at your option) any later version.
     6# the Free Software Foundation; version 2 of the License.
    87#
    98# This program is distributed in the hope that it will be useful,
     
    1716#
    1817
    19 all: html wiki
    2018
    21 html:
    22         ./mkOptionList.py
    23         @#saxon  Options.xml Options.xsl > Options.html
    24         xsltproc Options.xsl Options.xml > Options.html
    25        
    26 wiki:
    27         ./mkOptionList.py
    28         xsltproc Options-wiki.xsl Options.xml > Options.wiki
     19SVNVERSION := $(shell LC_ALL=C svnversion -cn ../.. | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/" | grep "[0-9]" || LC_ALL=C svn info . | grep ^Revision | sed "s/.*[[:blank:]]\+\([0-9]*\)[^0-9]*/\1/" | grep "[0-9]" || echo unknown)
     20
     21all:
     22        cd ../..; util/optionlist/kconfig2wiki src/Kconfig $(SVNVERSION) > util/optionlist/Options.wiki
    2923
    3024clean:
    31         rm -rf Options.xml Options.html Options.wiki
     25        rm -rf Options.wiki
    3226
  • trunk/util/optionlist/README

    r3053 r5101  
    1 I would like to contribute the following to the coreboot wiki in case
    2 it's useable:
    3 
    4 1. I have written a rather small Python script to convert the Options.lb
    5    into an XML file which is much more useable for the web in most cases.
    6 
    7 2. I have written a XSLT to convert the XML file to (X)HTML to be able
    8    to present it as a table.
    9 
    10 Florob (Florian Zeitz <florian-zeitz@lycos.de>)
    11 
    12 
    13 ChangeLog
    14 ---------
    15 
    16 * 2005-03-19 stepan
    17   - fix xml stylesheet to work with xsltproc and saxon
    18   - add Makefile
    19   - make script a bit more verbose
    20 
    21 * 2005-03-15 florob
    22   - Initial version
    23 
    24 
    25 License
    26 -------
    27 
    28 Copyright (C) 2005 Florian Zeitz <florian-zeitz@lycos.de>
    29 Copyright (C) 2005-2006 Stefan Reinauer <stepan@coresystems.de>
    30 Copyright (C) 2006 Uwe Hermann <uwe@hermann-uwe.de>
    31 
    32 This program is free software; you can redistribute it and/or modify
    33 it under the terms of the GNU General Public License as published by
    34 the Free Software Foundation; either version 2 of the License, or
    35 (at your option) any later version.
    36 
    37 This program is distributed in the hope that it will be useful,
    38 but WITHOUT ANY WARRANTY; without even the implied warranty of
    39 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    40 GNU General Public License for more details.
    41 
    42 You should have received a copy of the GNU General Public License
    43 along with this program; if not, write to the Free Software
    44 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
    45 
    46 
     1This script creates the page http://www.coreboot.org/Coreboot_Options
Note: See TracChangeset for help on using the changeset viewer.