summaryrefslogtreecommitdiff
path: root/generate.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgenerate.sh44
1 files changed, 30 insertions, 14 deletions
diff --git a/generate.sh b/generate.sh
index 0e8a8a4..a55f299 100755
--- a/generate.sh
+++ b/generate.sh
@@ -10,28 +10,42 @@ 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</body>|g' axtlos.7.html > axtlos.7.html.tmp
+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>Project Shards</b>(1), <b>Crystal Linux</b>(1) <b>Linux||g' axtlos.7.html > axtlos.7.html.tmp
-sed 's| Immutability Tools</b>(7)</p>|<div class="Pp">\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
+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 "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://axtlos.neocities.org">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 "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
+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>Crystal Linux</b>(1), <b>Linux Immutability||g' shards.1.html > shards.1.html.tmp
-sed 's| 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="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
+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)"
@@ -45,8 +59,8 @@ 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), <b>Linux Immutability||g' crystal.1.html > crystal.1.html.tmp
-sed 's| 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>(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
+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)"
@@ -55,7 +69,9 @@ 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>Project Shards</b>(1), <b>Crystal||g' lit.7.html > lit.7.html.tmp
-sed 's|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="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
-
+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