From d0a34f5a14165f8a518389cb7f7e09a829e07d83 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 19 Jul 2022 12:56:29 -0500 Subject: Add TODO --- sfeed_update_urls.sh | 4 ++-- sfeed_update_xargs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sfeed_update_urls.sh b/sfeed_update_urls.sh index a2ee2be..79a7876 100755 --- a/sfeed_update_urls.sh +++ b/sfeed_update_urls.sh @@ -2,7 +2,7 @@ . "$1" -feed() { +feed() { # feed NAME URL BASE_URL ENCODING printf '%s\t%s\t%s\n' "$1" "$2" "${3:-}" } @@ -12,7 +12,7 @@ feeds | awk -v dir="$SFEED_DATA/urls" ' BEGIN{FS="\t";} { gsub(/\//, "_", $1); - file = dir "/" $1; + file = dir "/" $1; if ($2) print $2 > file; if ($3) print $3 >> file; }' diff --git a/sfeed_update_xargs b/sfeed_update_xargs index f8ee8e7..a249fa0 100755 --- a/sfeed_update_xargs +++ b/sfeed_update_xargs @@ -40,6 +40,10 @@ feeds | SFEED_UPDATE_CHILD="1" xargs -r -0 -P "${maxjobs}" -L 6 "$(readlink -f " status=$? # check error exit status indicator for parallel jobs. test -f "${sfeedtmpdir}/ok" || status=1 + +## TODO: further processing for feed metadata +# ${sfeedtmpdir}/feeds/* + # cleanup temporary files etc. cleanup exit ${status} -- cgit 1.4.1-21-gabe81