blob: c376e56a9dc210add4ebc961ede1cfafb57239dc (
plain) (
blame)
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
|
#!/usr/bin/env sh
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' 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</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)</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)"
|