04 May 2007 22:31:00 +0200, Christoph Bartelmus <lirc@bartelmus.de>:
Diese Nachricht enthaelt eine MIME-codierte Binaerdatei. Falls Ihr
Mailer die Datei nicht decodieren kann, verwenden Sie dafuer bitte
ein Tool wie 'munpack' oder 'udec'.

This message contains a MIME encoded binary file. If your mailer
cannot decode the file, please use a decoding tool like 'munpack'.

Hi!

Hi !

Arnaud Quette "aquette.dev@gmail.com" wrote:
> following Loic's mail and work, and Christoph's bug hunt on the
> table.sh script, we propose the following output format for the LIRC
> hardware DB list:

I suggest changing it as in the attached diff.

Totally agree with you, I don't why I write a second grep for category because it's same as the desc 's grep.
Maybe you can apply patch, or Arnaud. What do you think about that Christophe ?

Christoph

Index: table.sh
===================================================================
RCS file: /cvsroot/lirc/lirc/doc/table.sh,v
retrieving revision 1.5
diff -u -u -r1.5 table.sh
--- table.sh     21 Apr 2007 20:08:23 -0000      1.5
+++ table.sh    4 May 2007 20:30:32 -0000
@@ -1,5 +1,6 @@
#! /bin/sh

+HWDB="${1:-/dev/null}"
HEURISTIC=`mktemp`

write_heuristic="no"
@@ -25,6 +26,20 @@
     fi
done

+cat << HWDB_HEADER > "${HWDB}"
+# LIRC - Hardware DataBase
+#
+# This file lists all the remote controls supported by LIRC
+# in a parseable form.
+#
+# The format is:
+#
+# [remote controls type]
+# description;driver;lirc driver;HW_DEFAULT;lircd_conf;
+#
+#
+HWDB_HEADER
+
cat html-source/head.html

echo "<table border=\"1\">"
@@ -39,6 +54,8 @@
     if echo $REPLY|grep ": @" >/dev/null; then
        entry=`echo $REPLY|sed --expression="s/.*: \(@.*\)/\1/"`
        desc=`grep "${entry}:" ../setup.data|sed --expression="s/.*\"\(.*\)\".*/\1/"`
+       echo "" >> "${HWDB}"
+       echo "[$desc]" >> "${HWDB}"
        echo "<tr><th colspan=\"5\"><a name=\"${entry}\">${desc}</a></th></tr>"
        continue;
     fi
@@ -74,6 +91,7 @@
            echo -n "${driver}"
        fi
        echo "</td><td align=\"center\">${lirc_driver}</td><td align=\"center\">${HW_DEFAULT#???}</td><td>${lircd_conf}<br>${lircmd_conf}</td></tr>"
+       echo "${desc};${driver};${lirc_driver};${HW_DEFAULT};${lircd_conf};" >> "${HWDB}"
     fi
done
echo "</table>"

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




--
Loc Dardant