Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Plugin specific config files
Am Dienstag, 2. September 2003 22:37 schrieb Klaus Schmidinger:
> Steffen Barszus wrote:
> > ...
> > Ok I have tried on my own a littlebit:
> >
> > plugins () {
> > ls $PLUGIN_CONFS 2> /dev/null > /dev/null
> > if test -e 0 ; then
> > for plugin in $(basename `ls $PLUGIN_CONFS/*.conf`) ; do {
> > if test -e $LIBDIR/libvdr-$plugin.so*; then
> > for option in `sed -e's/#.*//' -e'/^ *$/d' -e's/"/\\"/g'
> > "$PLUGIN_CONFS/$plugin"`; do
> > options="$options --$option"
> > done;
> >
> > PLUGINS="$PLUGINS -P\"${plugin%%.conf} $options\""
> > fi
> > }
> > done
> > fi
> > }
> >
> > with f.i. mp3.conf :
> > --------------------------
> > #mp3 (0.8.0) - A versatile audio player
> > #
> > # mount=CMD use CMD to mount/unmount/eject mp3 sources
> > # (default: mount.sh)
> > #
> > # network=CMD execute CMD before & after network access
> > # (default: none)
> > #
> > # cddb=DIR search CDDB files in DIR
> > # (default: /var/lib/cddb)
> >
> > #network=/usr/local/bin/vdrinternet
> > -----------------------------------
> >
> > If someone sees a possible problem here it would be nice to notify
> > me, i can too just use Klaus style, i just thought it is more in
> > .conf file style ;).
> >
> > comments are welcome
>
> This way you are forcing to use '--' options and make it impossible
> to use short options (it is not mandatory that there is a long option
> for every short option).
Ok, I had looked and have seen that there are allways long options. But
you are right. I will simply use your way I guess. But the exit states
are more important. I will test another plugin if i can reproduce it
then too ( have a look at the other thread.
Steffen
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index