Add c-thaumatology auto content generation script. - tgtimes - The Gopher Times
(HTM) git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit f847ad1377a627f8c5d2949ff98208637acf099e
(DIR) parent 24d5342832a764dc92f275179ad1d14978aaf1fe
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Thu, 10 Aug 2023 12:50:55 +0200
Add c-thaumatology auto content generation script.
Diffstat:
A auto-content/c-thaumaturgy.sh | 11 +++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/auto-content/c-thaumaturgy.sh b/auto-content/c-thaumaturgy.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+source ./opus
+
+cd opus${v}
+adfilename="$(($RANDOM % 8 + 2))-thaumaturgy-$RANDOM.md"
+printf "# This's opus C Thaumaturgy\n\n" > $adfilename
+curl -s gophers://bitreich.org/0/thaumaturgy/raw \
+ >> $adfilename
+printf "opus%s/%s generated.\n" "${v}" "${adfilename}"
+