about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-19 12:56:29 -0500
committerCase Duckworth2022-07-19 12:56:29 -0500
commitd0a34f5a14165f8a518389cb7f7e09a829e07d83 (patch)
treea65b0e1872f08006947c8c6bdc5b03d62631140e
parentAdd feeds from RSRSS (diff)
downloadsfeed-d0a34f5a14165f8a518389cb7f7e09a829e07d83.tar.gz
sfeed-d0a34f5a14165f8a518389cb7f7e09a829e07d83.zip
Add TODO
-rwxr-xr-xsfeed_update_urls.sh4
-rwxr-xr-xsfeed_update_xargs4
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 @@
2 2
3. "$1" 3. "$1"
4 4
5feed() { 5feed() { # feed NAME URL BASE_URL ENCODING
6 printf '%s\t%s\t%s\n' "$1" "$2" "${3:-}" 6 printf '%s\t%s\t%s\n' "$1" "$2" "${3:-}"
7} 7}
8 8
@@ -12,7 +12,7 @@ feeds | awk -v dir="$SFEED_DATA/urls" '
12BEGIN{FS="\t";} 12BEGIN{FS="\t";}
13{ 13{
14 gsub(/\//, "_", $1); 14 gsub(/\//, "_", $1);
15 file = dir "/" $1; 15 file = dir "/" $1;
16 if ($2) print $2 > file; 16 if ($2) print $2 > file;
17 if ($3) print $3 >> file; 17 if ($3) print $3 >> file;
18}' 18}'
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 "
40status=$? 40status=$?
41# check error exit status indicator for parallel jobs. 41# check error exit status indicator for parallel jobs.
42test -f "${sfeedtmpdir}/ok" || status=1 42test -f "${sfeedtmpdir}/ok" || status=1
43
44## TODO: further processing for feed metadata
45# ${sfeedtmpdir}/feeds/*
46
43# cleanup temporary files etc. 47# cleanup temporary files etc.
44cleanup 48cleanup
45exit ${status} 49exit ${status}