summaryrefslogtreecommitdiff
path: root/generate.sh
diff options
context:
space:
mode:
authoraxtlos <axtlos@getcryst.al>2023-03-18 23:21:42 +0100
committeraxtlos <axtlos@getcryst.al>2023-03-18 23:21:42 +0100
commit365b8aff3a82a90f50cce5f0204941c64d865514 (patch)
treeb2c3fb530196b2795c3fafd316e0a131d4244c19 /generate.sh
parent6dd8523ab9e74cb272731a32b02c2aa538814c97 (diff)
downloadwebsite-365b8aff3a82a90f50cce5f0204941c64d865514.tar.gz
website-365b8aff3a82a90f50cce5f0204941c64d865514.tar.bz2
Add crystal(1) and shards(1)
Diffstat (limited to 'generate.sh')
-rwxr-xr-xgenerate.sh53
1 files changed, 44 insertions, 9 deletions
diff --git a/generate.sh b/generate.sh
index 8fba86b..c376e56 100755
--- a/generate.sh
+++ b/generate.sh
@@ -1,14 +1,49 @@
#!/usr/bin/env sh
-echo "Generate html"
-mandoc -T html -O style=./style.css website.7 > website.7.html
+echo "Generate axtlos(7)"
+mandoc -T html -O style=./style.css axtlos.7 > axtlos.7.html
+echo "Change OS"
+sed 's|Linux 6.2.6-arch1-1|FreeBSD 13.1-RELEASE-p6|g' axtlos.7.html > axtlos.7.html.tmp
+mv axtlos.7.html.tmp axtlos.7.html
echo "Change fedi hyperlink style"
-sed 's|<p class="Pp">- <a class="Lk" href="https://snowdin.town/axtlos">Fedi</a></p>|<p class="Pp">- <i class="Em">Fedi:</i> <a class="Lk" rel="me" href="https://snowdin.town/axtlos">https://snowdin.town/axtlos</a></p>|g' website.7.html > website.7.html.tmp
-mv website.7.html.tmp website.7.html
+sed 's|<p class="Pp">- <a class="Lk" href="https://snowdin.town/axtlos">Fedi</a></p>|<p class="Pp">- <i class="Em">Fedi:</i> <a class="Lk" rel="me" href="https://snowdin.town/axtlos">https://snowdin.town/axtlos</a></p>|g' axtlos.7.html > axtlos.7.html.tmp
+mv axtlos.7.html.tmp axtlos.7.html
echo "Adding Gifs"
-sed 's|</body>|<img src="https://cyber.dabamos.de/88x31/delete-twitter.gif" alt="delete twitter, make a neocities!"/>\n<img src="https://cyber.dabamos.de/88x31/antinazi.gif" alt="No nazis! No fascists! No racism!"/>\n<img src="https://cyber.dabamos.de/88x31/rainbow_bev.gif" alt="Pride flag"/>\n</body>|g' website.7.html > website.7.html.tmp
-mv website.7.html.tmp website.7.html
+sed 's|</body>|<img src="https://cyber.dabamos.de/88x31/delete-twitter.gif" alt="delete twitter, make a neocities!"/>\n<img src="https://cyber.dabamos.de/88x31/antinazi.gif" alt="No nazis! No fascists! No racism!"/>\n</body>|g' axtlos.7.html > axtlos.7.html.tmp
+mv axtlos.7.html.tmp axtlos.7.html
echo "Replace date with license"
-sed 's|<td class="foot-date">January 15, 2023</td>|<td class="foot-date">CC BY-SA 4.0</td>|g' website.7.html > website.7.html.tmp
-mv website.7.html.tmp website.7.html
-echo "Succesfully generated website"
+sed '/<td class="foot-date">/c\ <td class="foot-date">CC BY-SA 4.0</td>' axtlos.7.html > axtlos.7.html.tmp
+mv axtlos.7.html.tmp axtlos.7.html
+echo "Change See also to hyperlinks"
+sed 's|<p class="Pp"><b>Project Shards</b>(1), <b>Crystal Linux</b>(1)</p>|<a class="Lk" href="https://axtlos.neocities.org/shards.1.html"><b>Project Shards<b>(1)</a>, <a class="Lk" href="https://axtlos.neocities.org/crystal.1.html/"><b>Crystal Linux</b>(1)</a>|g' axtlos.7.html > axtlos.7.html.tmp
+mv axtlos.7.html.tmp axtlos.7.html
+echo "Succesfully generated axtlos(7)"
+
+echo "Generate shards(1)"
+mandoc -T html -O style=./style.css shards.1 > shards.1.html
+echo "Change OS"
+sed 's|Linux 6.2.6-arch1-1|FreeBSD 13.1-RELEASE-p6|g' shards.1.html > shards.1.html.tmp
+mv shards.1.html.tmp shards.1.html
+echo "Replace date with license"
+sed '/<td class="foot-date">/c\ <td class="foot-date">CC BY-SA 4.0</td>' shards.1.html > shards.1.html.tmp
+mv shards.1.html.tmp shards.1.html
+echo "Change See also to hyperlinks"
+sed 's|<p class="Pp"><b>axtlos</b>(7), <b>Crystal Linux</b>(1)</p>|<a class="Lk" href="https://axtlos.neocities.org"><b>axtlos<b>(7)</a>, <a class="Lk" href="https://axtlos.neocities.org/crystal.1.html/"><b>Crystal Linux</b>(1)</a>|g' shards.1.html > shards.1.html.tmp
+mv shards.1.html.tmp shards.1.html
+echo "Remove one specific newline"
+cat shards.1.html | grep -v ' <br/>' > shards.1.html.tmp
+mv shards.1.html.tmp shards.1.html
+echo "Succesfully generated shards(1)"
+
+echo "Generate crystal(1)"
+mandoc -T html -O style=./style.css crystal.1 > crystal.1.html
+echo "Change OS"
+sed 's|Linux 6.2.6-arch1-1|FreeBSD 13.1-RELEASE-p6|g' crystal.1.html > crystal.1.html.tmp
+mv crystal.1.html.tmp crystal.1.html
+echo "Replace date with license"
+sed '/<td class="foot-date">/c\ <td class="foot-date">CC BY-SA 4.0</td>' crystal.1.html > crystal.1.html.tmp
+mv crystal.1.html.tmp crystal.1.html
+echo "Change See also to hyperlinks"
+sed 's|<p class="Pp"><b>axtlos</b>(7), <b>Project Shards</b>(1)</p>|<a class="Lk" href="https://axtlos.neocities.org"><b>axtlos<b>(7)</a>, <a class="Lk" href="https://axtlos.neocities.org/shards.1.html/"><b>Project Shards</b>(1)</a>|g' crystal.1.html > crystal.1.html.tmp
+mv crystal.1.html.tmp crystal.1.html
+echo "Succesfully generated crystal(1)"