filter: introduce "filter type" prefix

This allows different filter implementations to be specified in the
configuration file.  Currently only "exec" is supported, but it may now
be specified either with or without the "exec:" prefix.

Signed-off-by: John Keeping <john@keeping.me.uk>
Этот коммит содержится в:
John Keeping
2014-01-12 17:13:53 +00:00
коммит произвёл Jason A. Donenfeld
родитель 7bd90b8048
Коммит 4bb87cbf17
2 изменённых файлов: 40 добавлений и 2 удалений

Просмотреть файл

@@ -557,6 +557,15 @@ config files, e.g. "repo.desc" becomes "desc".
FILTER API
----------
By default, filters are separate processes that are executed each time they
are needed. Alternative technologies may be used by prefixing the filter
specification with the relevant string; available values are:
'exec:'::
The default "one process per filter" mode.
Parameters are provided to filters as follows.
about filter::
This filter is given a single parameter: the filename of the source
file to filter. The filter can use the filename to determine (for