remove old script using xargs with sfeed_update - randomcrap - random crap programs of varying quality
 (HTM) git clone git://git.codemadness.org/randomcrap
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 661cd79bf17b590b03ac12c132cad739fe08d065
 (DIR) parent ba6ccad2d5529544eb55ba511ccef086ee9131e6
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Wed, 27 Dec 2023 12:11:32 +0100
       
       remove old script using xargs with sfeed_update
       
       It is now the default.
       
       Diffstat:
         D config/sfeed/sfeed_update/sfeed_up… |      38 -------------------------------
       
       1 file changed, 0 insertions(+), 38 deletions(-)
       ---
 (DIR) diff --git a/config/sfeed/sfeed_update/sfeed_update_xargs b/config/sfeed/sfeed_update/sfeed_update_xargs
       @@ -1,38 +0,0 @@
       -#!/bin/sh
       -# update feeds, merge with old feeds using xargs in parallel mode (non-POSIX).
       -
       -# include script and reuse its functions, but do not start main().
       -SFEED_UPDATE_INCLUDE="1" . sfeed_update
       -# load config file, sets $config.
       -loadconfig "$1"
       -
       -# process a single feed.
       -# args are: config, tmpdir, name, feedurl, basesiteurl, encoding
       -if [ "${SFEED_UPDATE_CHILD}" = "1" ]; then
       -        sfeedtmpdir="$2"
       -        _feed "$3" "$4" "$5" "$6"
       -        exit $?
       -fi
       -
       -# ...else parent mode:
       -
       -# feed(name, feedurl, basesiteurl, encoding)
       -feed() {
       -        # workaround: *BSD xargs doesn't handle empty fields in the middle.
       -        name="${1:-$$}"
       -        feedurl="${2:-http://}"
       -        basesiteurl="${3:-${feedurl}}"
       -        encoding="$4"
       -
       -        printf '%s\0%s\0%s\0%s\0%s\0%s\0' "${config}" "${sfeedtmpdir}" \
       -                "${name}" "${feedurl}" "${basesiteurl}" "${encoding}"
       -}
       -
       -# fetch feeds and store in temporary directory.
       -sfeedtmpdir="$(mktemp -d '/tmp/sfeed_XXXXXX')"
       -# make sure path exists.
       -mkdir -p "${sfeedpath}"
       -# print feeds for parallel processing with xargs.
       -feeds | SFEED_UPDATE_CHILD="1" xargs -r -0 -P "${maxjobs}" -L 6 "$(readlink -f "$0")"
       -# cleanup temporary files etc.
       -cleanup