|
From: <loi...@gm...> - 2007-05-06 10:43:50
|
04 May 2007 22:31:00 +0200, Christoph Bartelmus <li...@ba...>:
>
> 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 "aqu...@gm..." 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
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 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=3D"${1:-/dev/null}"
> HEURISTIC=3D`mktemp`
>
> write_heuristic=3D"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=3D\"1\">"
> @@ -39,6 +54,8 @@
> if echo $REPLY|grep ": @" >/dev/null; then
> entry=3D`echo $REPLY|sed --expression=3D"s/.*: \(@.*\)/\1/"`
> desc=3D`grep "${entry}:" ../setup.data|sed
> --expression=3D"s/.*\"\(.*\)\".*/\1/"`
> + echo "" >> "${HWDB}"
> + echo "[$desc]" >> "${HWDB}"
> echo "<tr><th colspan=3D\"5\"><a
> name=3D\"${entry}\">${desc}</a></th></tr>"
> continue;
> fi
> @@ -74,6 +91,7 @@
> echo -n "${driver}"
> fi
> echo "</td><td align=3D\"center\">${lirc_driver}</td><td
> align=3D\"center\">${HW_DEFAULT#???}</td><td>${lircd_conf}<br>${lircmd_co=
nf}</td></tr>"
> + echo
> "${desc};${driver};${lirc_driver};${HW_DEFAULT};${lircd_conf};" >> "${HWD=
B}"
> 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/
>
>
--=20
Lo=EFc Dardant
|