diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-12-06 20:09:53 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-12-06 20:09:53 +0100 |
commit | 787a189b5773928bfcb09173c4407475ea6b0219 (patch) | |
tree | 80802d5ed7f9d1dc410b62ee123e1f4cd3756db8 /prog/skovikanje/generiraj.sh | |
parent | malo lepši output (diff) | |
download | r-787a189b5773928bfcb09173c4407475ea6b0219.tar r-787a189b5773928bfcb09173c4407475ea6b0219.tar.gz r-787a189b5773928bfcb09173c4407475ea6b0219.tar.bz2 r-787a189b5773928bfcb09173c4407475ea6b0219.tar.lz r-787a189b5773928bfcb09173c4407475ea6b0219.tar.xz r-787a189b5773928bfcb09173c4407475ea6b0219.tar.zst r-787a189b5773928bfcb09173c4407475ea6b0219.zip |
Diffstat (limited to '')
-rwxr-xr-x | prog/skovikanje/generiraj.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/prog/skovikanje/generiraj.sh b/prog/skovikanje/generiraj.sh index a399102..b0ca566 100755 --- a/prog/skovikanje/generiraj.sh +++ b/prog/skovikanje/generiraj.sh @@ -8,14 +8,15 @@ echo "<h3><a href=//splet.šijanec.eu./>nazaj na varno (na mojo spletno stran)</ desc="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." echo "<p>$desc <a href=rss.xml>RSS</a></p>" echo "<?xml version='1.0' encoding='UTF-8' ?><rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'><atom:link href='http://z.4a.si/skovikanje/rss.xml' rel='self' type='application/rss+xml' /><channel><title>$title</title><description>$desc</description><link>http://z.4a.si/skovikanje/</link>" > $1 +echo "<hr id=vrh>" for file in `ls --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 echo "<item>" >> $1 RSS_BASEURL=http://z.4a.si/skovikanje/skovik/ ./komentar.sh objava rss $file >> $1 echo "</item>" >> $1 + echo "<hr>" done -echo "<hr><small style=display:flex;justify-content:center;align-items:center><a href=//ni.šijanec.eu./sijanec/r/tree/prog/skovikanje><code>$0 $@</code> | `date` | `hostname` | $(($(date +%s%N)/1000000-$start)) ms</a></small>" +echo "<small style=display:flex;justify-content:center;align-items:center><a href=//ni.šijanec.eu./sijanec/r/tree/prog/skovikanje><code>$0 $@</code> | `date` | `hostname` | $(($(date +%s%N)/1000000-$start)) ms</a></small>" echo '</channel></rss>' >> $1 |