summaryrefslogtreecommitdiffstats
path: root/prog/skovikanje/generiraj.sh
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-11-22 00:13:58 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-11-22 00:13:58 +0100
commitee9ea17367518b4589ee988526d17dc09686e4eb (patch)
treef0389c020413967abd46550941102d189c99accf /prog/skovikanje/generiraj.sh
parentDN04 (diff)
downloadr-ee9ea17367518b4589ee988526d17dc09686e4eb.tar
r-ee9ea17367518b4589ee988526d17dc09686e4eb.tar.gz
r-ee9ea17367518b4589ee988526d17dc09686e4eb.tar.bz2
r-ee9ea17367518b4589ee988526d17dc09686e4eb.tar.lz
r-ee9ea17367518b4589ee988526d17dc09686e4eb.tar.xz
r-ee9ea17367518b4589ee988526d17dc09686e4eb.tar.zst
r-ee9ea17367518b4589ee988526d17dc09686e4eb.zip
Diffstat (limited to '')
-rwxr-xr-xprog/skovikanje/generiraj.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/prog/skovikanje/generiraj.sh b/prog/skovikanje/generiraj.sh
new file mode 100755
index 0000000..d8f00ac
--- /dev/null
+++ b/prog/skovikanje/generiraj.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -xeuo pipefail
+start=$(($(date +%s%N)/1000000))
+cat header.html
+echo "<title>🦉 skovikanje :: blog nesmiselnih stvari</title>"
+echo "<h1>🦉 skovikanje :: blog nesmiselnih stvari</h2>"
+echo "<h3><a href=//splet.šijanec.eu./>nazaj na varno (na mojo spletno stran)</a></h3>"
+echo "<p>Tu so objave, ki se mi ne zdijo vredne objave na prvi strani. Za njihovo kvaliteto ne odgovarjam, je pa moč pod vsako objavo puščati komentarje.</p>"
+for file in `ls --reverse --sort=time --time=birth objave`
+do
+ echo "<hr>"
+ ./komentar.sh objava html $file 0
+ cat header.html <(./komentar.sh objava html $file 1) > skovik/$file.html
+done
+echo "<hr><small>ta stran, vključno z vsemi podstranmi s skoviki, je bila generirana dne `date` na `hostname` v $(($(date +%s%N)/1000000-$start)) ms.</small>"