1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#!/usr/bin/env sh
set -e
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://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
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
cp axtlos.7.html index.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), <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
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 "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), <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
echo "Succesfully generated crystal(1)"
echo "Generate Linux Immutability Tools(7)"
mandoc -T html -O style=./style.css lit.7 > 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>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
echo "Succesfully generated lit(7)"
|