#!/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|
|\n|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|' axtlos.7.html > axtlos.7.html.tmp mv axtlos.7.html.tmp axtlos.7.html echo "Change fedi hyperlink style" sed 's|- Fedi
|- Fedi: https://akko.wtf/axtlos
|g' axtlos.7.html > axtlos.7.html.tmp mv axtlos.7.html.tmp axtlos.7.html echo "Adding Gifs" sed 's||Specs(7), Project Shards(1), Crystal Linux(1)||g' axtlos.7.html > axtlos.7.html.tmp sed 's| Linux Immutability Tools(7)
||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||\n|g' specs.7.html > specs.7.html.tmp mv specs.7.html.tmp specs.7.html echo "Change header" sed 's|axtlos(7), Project Shards(1), Crystal||g' specs.7.html > specs.7.html.tmp sed 's| Linux(1) Linux Immutability Tools(7)
||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||\n|g' shards.1.html > shards.1.html.tmp mv shards.1.html.tmp shards.1.html echo "Replace date with license" sed 's|axtlos(7), Specs(7), Crystal Linux(1),||g' shards.1.html > shards.1.html.tmp sed 's| Linux Immutability Tools(7)
||g' shards.1.html.tmp > shards.1.html echo "Remove one specific newline" cat shards.1.html | grep -v 'axtlos(7), Specs(7), Project Shards(1),||g' crystal.1.html > crystal.1.html.tmp sed 's| Linux Immutability Tools(7)
||' 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||\n|g' lit.7.html > lit.7.html.tmp mv lit.7.html.tmp lit.7.html echo "Replace dat with license" sed '/axtlos(7), Specs(7), Project Shards(1),||g' lit.7.html > lit.7.html.tmp sed 's| Crystal Linux(1)
|