Add c-thaumatology auto content generation script. - tgtimes - The Gopher Times | |
git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit f847ad1377a627f8c5d2949ff98208637acf099e | |
parent 24d5342832a764dc92f275179ad1d14978aaf1fe | |
Author: Christoph Lohmann <[email protected]> | |
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(-) | |
--- | |
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}" | |
+ |