[LinuxBIOS] PATCH: optionslist minor fixes + license.

Uwe Hermann uwe at hermann-uwe.de
Wed Oct 18 17:43:50 CEST 2006


Hi,

here's a small patch for the util/optionlist/* code Stefan added
yesterday (thanks!), which I used to generate the contents of this wiki page:
http://www.linuxbios.org/LinuxBIOS_Options

There's some room here to make the table look better, suggestions welcome!

This makes the HTML page http://www.linuxbios.org/data/Options.html
obsolete; it can be safely removed, I guess.

Stefan, Florian, are you ok with making the tool GPL'd? If so, I
attached a patch which adds the license headers, feel free to apply
that too, if you want.


Cheers, Uwe.
-- 
Uwe Hermann 
http://www.hermann-uwe.de
http://www.it-services-uh.de  | http://www.crazy-hacks.org 
http://www.holsham-traders.de | http://www.unmaintained-free-software.org
-------------- next part --------------
Index: util/optionlist/Options.xsl
===================================================================
--- util/optionlist/Options.xsl	(Revision 2459)
+++ util/optionlist/Options.xsl	(Arbeitskopie)
@@ -1,4 +1,23 @@
 <?xml version="1.0"?>
+<!--
+  Copyright (C) 2005 Florian Zeitz <florian-zeitz at lycos.de>
+  Copyright (C) 2005 Stefan Reinauer <stepan at coresystems.de>
+  
+  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.
+  
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+  
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+-->
+
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
 <!--<xsl:choose>
Index: util/optionlist/Options-wiki.xsl
===================================================================
--- util/optionlist/Options-wiki.xsl	(Revision 2459)
+++ util/optionlist/Options-wiki.xsl	(Arbeitskopie)
@@ -1,4 +1,23 @@
 <?xml version="1.0"?>
+<!--
+ Copyright (C) 2006 Stefan Reinauer <stepan at coresystems.de>
+ Copyright (C) 2006 Uwe Hermann <uwe at hermann-uwe.de>
+ 
+ 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.
+ 
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ 
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+-->
+
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
 <xsl:output method="text"
Index: util/optionlist/mkOptionList.py
===================================================================
--- util/optionlist/mkOptionList.py	(Revision 2459)
+++ util/optionlist/mkOptionList.py	(Arbeitskopie)
@@ -1,4 +1,22 @@
 #!/usr/bin/python
+#
+# Copyright (C) 2005 Florian Zeitz <florian-zeitz at lycos.de>
+# Copyright (C) 2005 Stefan Reinauer <stepan at coresystems.de>
+# 
+# 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.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+# 
 
 def xmlString(string):
 	for i in range(len(string)-1):
Index: util/optionlist/Makefile
===================================================================
--- util/optionlist/Makefile	(Revision 2459)
+++ util/optionlist/Makefile	(Arbeitskopie)
@@ -1,3 +1,21 @@
+# 
+# Copyright (C) 2005 Stefan Reinauer <stepan at coresystems.de>
+# 
+# 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.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+# 
+
 all: html wiki
 
 html:
@@ -2,3 +20,3 @@
 	./mkOptionList.py
-	@#saxon  Options.xml Options.xsl >Options.html
+	@#saxon  Options.xml Options.xsl > Options.html
 	xsltproc Options.xsl Options.xml > Options.html
@@ -11,3 +29,4 @@
 
 clean:
 	rm -rf Options.xml Options.html Options.wiki
+
Index: util/optionlist/README
===================================================================
--- util/optionlist/README	(Revision 2459)
+++ util/optionlist/README	(Arbeitskopie)
@@ -1,14 +1,15 @@
 I would like to contribute the following to the LinuxBIOS wiki in case
 it's useable:
 
-1. I have written a rather small python script to convert the Options.lb
-   to a XML file which is much more useable for the web in most cases.
+1. I have written a rather small Python script to convert the Options.lb
+   into an XML file which is much more useable for the web in most cases.
 
 2. I have written a XSLT to convert the XML file to (X)HTML to be able
    to present it as a table.
 
 Florob (Florian Zeitz <florian-zeitz at lycos.de>)
 
+
 ChangeLog
 ---------
 
@@ -21,4 +22,25 @@
   - Initial version
 
 
+License
+-------
 
+Copyright (C) 2005 Florian Zeitz <florian-zeitz at lycos.de>
+Copyright (C) 2005-2006 Stefan Reinauer <stepan at coresystems.de>
+Copyright (C) 2006 Uwe Hermann <uwe at hermann-uwe.de>
+
+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.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+
-------------- next part --------------
Index: util/optionlist/Options-wiki.xsl
===================================================================
--- util/optionlist/Options-wiki.xsl	(Revision 2458)
+++ util/optionlist/Options-wiki.xsl	(Arbeitskopie)
@@ -3,30 +3,34 @@
 
 <xsl:output method="text"
             encoding="utf-8"
-	    indent="yes" />
+            indent="yes" />
 
 <xsl:template match="/">
-==LinuxBIOS Options==
+This is an automatically generated list of '''LinuxBIOS compile-time
+options'''.
 
-This is an automatically generated list of LinuxBIOS compile time
-options. Created at <xsl:value-of select="//creationdate"/>.
+Last update: <xsl:value-of select="//creationdate"/>.
 
 {| border="1"
-|- bgcolor="#0975a7"
+|- bgcolor="#6699dd"
 ! align="left" | Option
 ! align="left" | Comment
 ! align="left" | Default
 ! align="left" | Export
 ! align="left" | Format<xsl:for-each select="options/option">
-|- 
-| <xsl:value-of select="@name"/>
-| <xsl:value-of select="comment"/>
-| <xsl:value-of select="default"/>
-| <xsl:value-of select="export"/>
-| <xsl:value-of select="format"/>
+|- bgcolor="#eeeeee"
+|
+<xsl:value-of select="@name"/>
+|
+<xsl:value-of select="comment"/>
+|
+<xsl:value-of select="default"/>
+|
+<xsl:value-of select="export"/>
+|
+<xsl:value-of select="format"/>
 </xsl:for-each>
-|} 
+|}
 
-
 </xsl:template>
 </xsl:stylesheet>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20061018/52a9c84a/attachment.sig>


More information about the coreboot mailing list