summaryrefslogtreecommitdiff
path: root/generate.sh
diff options
context:
space:
mode:
authoraxtloss <axtlos@disroot.org>2024-08-20 01:20:30 +0200
committeraxtloss <axtlos@disroot.org>2024-08-20 01:20:30 +0200
commite235aa6cf4914cbff6c72f19e0fcf6888da349f7 (patch)
tree0d488cadc02706aa2c7652b42e4f21342125c5f7 /generate.sh
parent479414a93ae03a4463c16d54b39cd155b1e04683 (diff)
downloadwebsite-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.gz
website-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.bz2
yayyy new website!!
Diffstat (limited to 'generate.sh')
-rwxr-xr-xgenerate.sh92
1 files changed, 0 insertions, 92 deletions
diff --git a/generate.sh b/generate.sh
deleted file mode 100755
index 5c0f6c1..0000000
--- a/generate.sh
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/usr/bin/env sh
-set -e
-
-echo "Generate axtlos(7)"
-mandoc -T html -O style=./style.css axtlos.7 > axtlos.7.html
-echo "Add anti Chrome and Brave JS"
-sed 's|<body>|<body>\n<script src="./antiChrome_Brave.js"></script>|g' axtlos.7.html > axtlos.7.html.tmp
-mv axtlos.7.html.tmp axtlos.7.html
-echo "Add favicon"
-sed 's|media="all"/>|media="all"/>\n<link rel="icon" type="image/x-icon" href="./favicon.gif"/>|' 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://akko.wtf/xenia">Fedi</a></p>|<p class="Pp">- <i class="Em">Fedi:</i> <a class="Lk" rel="me" href="https://akko.wtf/axtlos">https://akko.wtf/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="./buttons/xen.gif" alt="amy, xenia, solar"/><img src="./buttons/delete-twitter.gif" alt="delete twitter, make a neocities!"/>\n<img src="./buttons/antinazi.gif" alt="No nazis! No fascists! No racism!"/>\n<img src="./buttons/deltarune.png" alt="kris what the fuck are we doing here"/>\n<img src="./buttons/emacs3.gif" alt="made with emacs">\n<img src="./buttons/ltg.gif" alt="ltg"><img src="./buttons/nft.gif" alt="nft? more like no fucking thanks!"><img src="./buttons/sameshit.gif" alt="chrome and edge, same shit, different asshole">\n<img src="./buttons/latex.gif" alt="Learn LaTeX NOW!"/>\n<img src="./buttons/lynx.gif" alt="This website is lynx friendly!"/>\n</body>|g' axtlos.7.html > axtlos.7.html.tmp
-mv axtlos.7.html.tmp axtlos.7.html
-echo "Replace date with license"
-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>Specs</b>(7), <b>Project Shards</b>(1), <b>Crystal Linux</b>(1)||g' axtlos.7.html > axtlos.7.html.tmp
-sed 's| <b>Linux Immutability Tools</b>(7)</p>|<div class="Pp">\n<a class="Lk" href="specs.7.html"><b>Specs</b>(7)</a><a>, </a>\n<a class="Lk" href="shards.1.html"><b>Project Shards</b>(7)</a><a>, </a>\n<a class="Lk" href="crystal.1.html"><b>Crystal Linux</b>(1)</a><a>, </a>\n<a class="Lk" href="lit.7.html"><b>Linux Immutability Tools</b>(1)</a>\n</div>|g' axtlos.7.html.tmp > axtlos.7.html
-cp axtlos.7.html index.html
-echo "Succesfully generated axtlos(7)"
-
-echo "Generate specs(7)"
-mandoc -T html -O style=./style.css specs.7 > specs.7.html
-echo "Add anti Chrome and Brave JS"
-sed 's|<body>|<body>\n<script src="./antiChrome_Brave.js"></script>|g' specs.7.html > specs.7.html.tmp
-mv specs.7.html.tmp specs.7.html
-echo "Change header"
-sed 's|<td class="head-ltitle">computers(7)</td>|<td class="head-ltitle">technological</td>|g' specs.7.html > specs.7.html.tmp
-mv specs.7.html.tmp specs.7.html
-sed 's|<td class="head-vol">Miscellaneous Information Manual</td>|<td class="head-vol">devices</td>|g' specs.7.html > specs.7.html.tmp
-mv specs.7.html.tmp specs.7.html
-sed 's|<td class="head-rtitle">computers(7)</td>|<td class="head-rtitle">straight from hell</td>|g' specs.7.html > specs.7.html.tmp
-mv specs.7.html.tmp specs.7.html
-echo "Add back to main page link"
-sed 's|<td class="foot-os">|<td class="foot-home"><a href="https://xenia.blahaj.land">Go To Main Page</a></td>\n<td class="foot-os">|g' specs.7.html > specs.7.html.tmp
-mv specs.7.html.tmp specs.7.html
-echo "Change see also to hyperlinks"
-sed 's|<p class="Pp"><b>axtlos</b>(7), <b>Project Shards</b>(1), <b>Crystal||g' specs.7.html > specs.7.html.tmp
-sed 's| Linux</b>(1) <b>Linux Immutability Tools</b>(7)</p>|<div class="Pp">\n<a class="Lk" href="index.html"><b>axtlos</b>(7)</a><a>, </a>\n<a class="Lk" href="shards.1.html"><b>Project Shards</b>(7)</a><a>, </a>\n<a class="Lk" href="crystal.1.html"><b>Crystal Linux</b>(1)</a><a>, </a>\n<a class="Lk" href="lit.7.html"><b>Linux Immutability Tools</b>(1)</a>\n</div>|g' specs.7.html.tmp > specs.7.html
-echo "Successfully generated specs(7)"
-
-echo "Generate shards(1)"
-mandoc -T html -O style=./style.css shards.1 > shards.1.html
-echo "Add anti Chrome and Brave JS"
-sed 's|<body>|<body>\n<script src="./antiChrome_Brave.js"></script>|g' shards.1.html > shards.1.html.tmp
-mv shards.1.html.tmp shards.1.html
-echo "Replace date with license"
-sed 's|<td class="foot-date">|c\ <td class="foot-date">CC BY-SA 4.0</td>|g' 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>Specs</b>(7), <b>Crystal Linux</b>(1),||g' shards.1.html > shards.1.html.tmp
-sed 's| <b>Linux Immutability Tools</b>(7)</p>|<div class="Pp">\n<a class="Lk" href="index.html"><b>axtlos</b>(7)</a><a>, </a>\n<a class="Lk" href="specs.7.html"><b>Specs</b>(7)</a><a>, </a>\n<a class="Lk" href="crystal.1.html"><b>Crystal Linux</b>(1)</a><a>, </a>\n<a class="Lk" href="lit.7.html"><b>Linux Immutability Tools</b>(1)</a>\n</div>|g' shards.1.html.tmp > shards.1.html
-echo "Remove one specific newline"
-cat shards.1.html | grep -v ' <br/>' > shards.1.html.tmp
-echo "Succesfully generated shards(1)"
-
-echo "Generate crystal(1)"
-mandoc -T html -O style=./style.css crystal.1 > crystal.1.html
-echo "Add anti Chrome and Brave JS"
-sed 's|<body>|<body>\n<script src="./antiChrome_Brave.js"></script>|g' crystal.1.html > crystal.1.html.tmp
-mv crystal.1.html.tmp 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>Specs</b>(7), <b>Project Shards</b>(1),||g' crystal.1.html > crystal.1.html.tmp
-sed 's| <b>Linux Immutability Tools</b>(7)</p>|<div class="Pp">\n<a class="Lk" href="index.html"><b>axtlos</b>(7)</a><a>, </a>\n<a class="Lk" href="specs.7.html"><b>Specs</b>(7)</a><a>, </a>\n<a class="Lk" href="shards.1.html"><b>Project Shards</b>(1)</a><a>, </a>\n<a class="Lk" href="lit.7.html"><b>Linux Immutability Tools</b>(1)</a>\n</div>|' crystal.1.html.tmp > crystal.1.html
-echo "Succesfully generated crystal(1)"
-
-echo "Generate Linux Immutability Tools(7)"
-mandoc -T html -O style=./style.css lit.7 > lit.7.html
-echo "Add anti Chrome and Brave JS"
-sed 's|<body>|<body>\n<script src="./antiChrome_Brave.js"></script>|g' lit.7.html > lit.7.html.tmp
-mv lit.7.html.tmp lit.7.html
-echo "Replace dat with license"
-sed '/<td class="foot-date">/c\ <td class="foot-date">CC BY-SA 4.0</td>' lit.7.html > lit.7.html.tmp
-mv lit.7.html.tmp lit.7.html
-echo "Change See also to hyperlinks"
-sed 's|<p class="Pp"><b>axtlos</b>(7), <b>Specs</b>(7), <b>Project Shards</b>(1),||g' lit.7.html > lit.7.html.tmp
-sed 's| <b>Crystal Linux</b>(1)</p>|<div class="Pp">\n<a class="Lk" href="index.html"><b>axtlos</b>(7)</a><a>, </a>\n<a class="Lk" href="specs.7.html"><b>Specs</b>(7)</a><a>, </a>\n<a class="Lk" href="shards.1.html"><b>Project Shards</b>(1)</a><a>, </a>\n<a class="Lk" href="crystal.1.html"><b>Crystal Linux</b>(1)</a>|g' lit.7.html.tmp > lit.7.html
-echo "Succesfully generated lit(7)"
-
-echo "cleanup"
-rm *.tmp