Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix atom generation, fix ed commands. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 597c3e0a24dacce5b1f895963fcd295a3a6fb578
parent 880ad7cbffd80013c092029141c728091370a81f
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 10 May 2020 17:14:47 +0200
Fix atom generation, fix ed commands.
Diffstat:
M phlog-index | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/phlog-index b/phlog-index
@@ -1,7 +1,5 @@
#!/bin/sh
-set -x
-
export PATH="$PATH:/home/annna/bin"
doforce=0
@@ -124,20 +122,17 @@ cp lsr.new lsr.old
{
printf "/N_E_W_S/+1,\$-3d\n"
- printf "/N_E_W_S/r !cat /home/annna/phlogs/agg.gph | head -n 256\n"
+ printf "?N_E_W_S?r !cat /home/annna/phlogs/agg.gph | head -n 256\n"
printf "w\nq\n"
} | ed -s /br/gopher/news.gph
# Make the atom news file ready for consumption.
-cp /br/gopher/news.atom.xml.tmpl /br/gopher/news.atom.xml
{
- printf "/updated/+1,/\\/feed/-1d\n"
- printf "1\n"
- printf "/updated/c\n"
- printf "\t<updated>%s</updated>\n" "$(date -u +%F%T%z)\n"
+ printf "/updated/+1,\$-1d\n"
+ printf "?updated?c\n"
+ printf "\t<updated>%s</updated>\n" "$(date -u +%F%T%z)"
printf ".\n"
- printf "1\n"
- printf "/updated/r !cat /home/annna/phlogs/agg.atom.xml\n"
+ printf "?updated?r !cat /home/annna/phlogs/agg.atom.xml\n"
printf "w\nq\n"
} | ed -s /br/gopher/news.atom.xml
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.