From 3873860a0fd662ab1033998b61e4a83984de02cc Mon Sep 17 00:00:00 2001
From: Case Duckworth
Date: Wed, 20 Jul 2022 11:50:38 -0500
Subject: Add twtxt
---
runsfeed | 10 +++++++++-
sfeed_html.sh | 3 +++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/runsfeed b/runsfeed
index 4c1aef0..481acc0 100755
--- a/runsfeed
+++ b/runsfeed
@@ -47,8 +47,12 @@ main() {
}'
logok "Generating OPML" '{
opml "$sfeedrc" >/tmp/feeds.opml &&
- mv /tmp/feeds.opml "$SFEED_OUTPUT/feeds.opml";
+ mv /tmp/feeds.opml "$SFEED_OUTPUT/feeds.opml";
}'
+ logok "Generating twtxt" '{
+ twtxt "$sfeedrc" >/tmp/feeds.txt &&
+ mv /tmp/feeds.txt "$SFEED_OUTPUT/feeds.txt";
+ }'
# logok "Archiving old feeds" \
# archive "$sfeedpath"/*
if [ -f /tmp/runsfeed.ok ]; then
@@ -102,6 +106,10 @@ update() {
runcmd sfeed_update_xargs "$@"
}
+twtxt() {
+ sfeed_twtxt "$@"
+}
+
opml() {
sfeed_opml_export "$@"
}
diff --git a/sfeed_html.sh b/sfeed_html.sh
index 5b114d8..3d96584 100755
--- a/sfeed_html.sh
+++ b/sfeed_html.sh
@@ -24,6 +24,8 @@ Planet ACDW
//
rss (short)
//
+twtxt
+//
opml
@@ -56,6 +58,7 @@ html_head() {
+
EOF
}
--
cgit 1.4.1-21-gabe81