summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authortslil clingman <>2024-02-11 20:43:23 +0100
committertslil clingman <>2024-02-11 20:43:23 +0100
commita44b5ee3dc703d31b43d75a2a4f83bafd47633dc (patch)
tree6a27f609d3d4d7bbd59ba55a1871807a8257cc20 /update.sh
parent13ffbda4cc641a3c048eb2344f8c7303dc341fa0 (diff)
auto populate all-index
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..553428d
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo Generating index
+printf "# l-3.space: all\n\nAll content\n" > index-all.gmi
+for f in log*gmi; do
+ printf '=> %s %s\n' $f "$(grep '^# ' $f | head -n1 | cut -d\ -f2-)";
+done | sort -r >> index-all.gmi
+
+gemfeed.py -b gemini://l-3.space -e 'hello@l-3.space' -t l-3.space -a tslil