From b70334e0a80a07a2255b4534582c92f74cc827cb Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 9 Oct 2022 15:54:38 -0400 Subject: [PATCH] Multiplex feeds list by host/channel I want to send some updates (my blog, etc) to the general channel in our tilde, but I have a music-specific blog that better fits the #music channel--by putting the $host.$channel in both the feeds list and the /tmp files, I can have a separate irl cron job running per channel! --- irl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/irl.sh b/irl.sh index a821876..44aad7a 100755 --- a/irl.sh +++ b/irl.sh @@ -46,10 +46,10 @@ QUIT EOM } -feeds=/etc/irl/feeds -known_ids=/tmp/irl-known.ids -all_ids=/tmp/irl-all.ids -new_ids=/tmp/irl-new.ids +feeds=/etc/irl/$host.$channel +known_ids=/tmp/irl-known.$host.$channel.ids +all_ids=/tmp/irl-all.$host.$channel.ids +new_ids=/tmp/irl-new.$host.$channel.ids [ ! -e $feeds ] && die "Create $feeds to begin!" command -v sfeed >/dev/null || die "sfeed not installed" -- libgit2 1.1.1