diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-09-28 17:11:56 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-09-30 19:22:17 +0200 |
commit | cc9f0d5549b21bb6254aede2ff479698183ea5e3 (patch) | |
tree | fa9d491f202c44fca744e80829953235dea680ee /sfeed_update.1 | |
parent | 5aa78eb161a89f3803cc6efa35e214dd2e8f5386 (diff) |
sfeed_update: add filter(), order() support per feed + improvements
Pass the name parameter to the functions and add these to the pipeline. They
can be overridden in the config.
- add the ability to change the merge logic per feed.
- add the ability to filter lines and fields per feed.
- add the ability to order lines differently per feed.
- add filter example to README.
- code-style:
- fetchfeed consistency in parameter order.
- change [ x"" = x"" ] to [ "" = "" ]. Simplify some if statements.
- wrap long line in fetchfeed().
- use signal names for trap.
Diffstat (limited to 'sfeed_update.1')
-rw-r--r-- | sfeed_update.1 | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/sfeed_update.1 b/sfeed_update.1 index 622e08c..2260de0 100644 --- a/sfeed_update.1 +++ b/sfeed_update.1 @@ -1,4 +1,4 @@ -.Dd August 5, 2015 +.Dd September 28, 2018 .Dt SFEED_UPDATE 1 .Os .Sh NAME @@ -29,15 +29,28 @@ section for more information. Config file, see the sfeedrc.example file for an example. This file is evaluated as a shellscript in .Nm . -You can for example override the fetchfeed() function to -use -.Xr curl 1 , +.Pp +Atleast the following functions can be overridden per feed: +.Bl -tag -width 17n +.It fetchfeed +to use .Xr wget 1 , -or an other network downloader or you can override the merge() function to -change the merge logic. +OpenBSD +.Xr ftp 1 +or an other download program. +.It merge +to change the merge logic. +.It filter +to filter on fields. +.It order +to change the sort order. +.El +.Pp The function feeds() is called to fetch the feeds. -By default the function feed() is executed concurrently as a background job to -speedup updating. +The function feed() can safely be executed concurrently as a background job in +your +.Xr sfeedrc 5 +config file to make updating faster. .El .Sh FILES WRITTEN .Bl -tag -width 17n |