summaryrefslogtreecommitdiff
path: root/generate.sh
diff options
context:
space:
mode:
authoraxtlos <axtlos@getcryst.al>2023-05-13 18:00:21 +0200
committeraxtlos <axtlos@getcryst.al>2023-05-13 18:00:21 +0200
commiteaf8f88c1bfbe5b3c21354865d783cf3a359c95d (patch)
tree8dc614e3d7d5c7da8c9885e325c6c7ecd31f9007 /generate.sh
parenta553bfe5be7c27ba2fd056a39d0b033992fd3b19 (diff)
downloadwebsite-eaf8f88c1bfbe5b3c21354865d783cf3a359c95d.tar.gz
website-eaf8f88c1bfbe5b3c21354865d783cf3a359c95d.tar.bz2
Add Linux Immutability Tools
Diffstat (limited to '')
-rwxr-xr-xgenerate.sh26
1 files changed, 19 insertions, 7 deletions
diff --git a/generate.sh b/generate.sh
index c376e56..fdc3acc 100755
--- a/generate.sh
+++ b/generate.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
+set -e
echo "Generate axtlos(7)"
mandoc -T html -O style=./style.css axtlos.7 > axtlos.7.html
@@ -15,8 +16,9 @@ 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
+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)"
@@ -28,11 +30,10 @@ 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
+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
-mv shards.1.html.tmp shards.1.html
echo "Succesfully generated shards(1)"
echo "Generate crystal(1)"
@@ -44,6 +45,17 @@ 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
+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)"