aboutsummaryrefslogtreecommitdiffstats
path: root/mkfile
diff options
context:
space:
mode:
authorLaird Lonergan <sillyfanboy@gmail.com>2026-09-03 01:40:19 +0000
committerLaird Lonergan <sillyfanboy@gmail.com>2026-09-03 01:40:19 +0000
commit43ed72ae3cd7e5f17aeb3b51000fa69614495b1e (patch)
tree2441b172d5ca92b87bbbb6a6810fc6f224484357 /mkfile
parentinitial (diff)
downloadwww-43ed72ae3cd7e5f17aeb3b51000fa69614495b1e.tar.gz
www-43ed72ae3cd7e5f17aeb3b51000fa69614495b1e.zip
add blogmirror: static mirror of blog.sillylaird.camasterfront
Reads the blog's RSS feed (full post body lives in content:encoded) and writes flat mothra-friendly HTML under html/ — an index plus one page per post at YYYY/MM/DD/slug.html. Plain ANSI C so it builds with APE pcc on 9front and cc elsewhere; fetches with hget when present, curl otherwise. mirror.rc regenerates and pushes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YAgU4WFfVJKNK8CkpxhEcg
Diffstat (limited to 'mkfile')
-rw-r--r--mkfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/mkfile b/mkfile
new file mode 100644
index 0000000..34ddb90
--- /dev/null
+++ b/mkfile
@@ -0,0 +1,16 @@
+# 9front: mk (uses APE cc, needs stdio + system(2))
+CC=pcc
+TARG=blogmirror
+
+$TARG: blogmirror.c
+ $CC -o $TARG blogmirror.c
+
+install:V: $TARG
+ mkdir -p $home/bin/$objtype
+ cp $TARG $home/bin/$objtype/$TARG
+
+test:V: $TARG
+ ./$TARG -o /tmp/blogmirror.out
+
+clean:V:
+ rm -f $TARG *.[0-9] [0-9].out