From eaf8f88c1bfbe5b3c21354865d783cf3a359c95d Mon Sep 17 00:00:00 2001 From: axtlos Date: Sat, 13 May 2023 18:00:21 +0200 Subject: Add Linux Immutability Tools --- generate.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'generate.sh') 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 '//c\ CC BY-SA 4.0' axtlos.7.html > axtlos.7.html.tmp mv axtlos.7.html.tmp axtlos.7.html echo "Change See also to hyperlinks" -sed 's|

Project Shards(1), Crystal Linux(1)

|Project Shards(1), Crystal Linux(1)|g' axtlos.7.html > axtlos.7.html.tmp -mv axtlos.7.html.tmp axtlos.7.html +sed 's|

Project Shards(1), Crystal Linux(1) Linux||g' axtlos.7.html > axtlos.7.html.tmp +sed 's| Immutability Tools(7)

||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 '//c\ CC BY-SA 4.0' shards.1.html > shards.1.html.tmp mv shards.1.html.tmp shards.1.html echo "Change See also to hyperlinks" -sed 's|

axtlos(7), Crystal Linux(1)

|axtlos(7), Crystal Linux(1)|g' shards.1.html > shards.1.html.tmp -mv shards.1.html.tmp shards.1.html +sed 's|

axtlos(7), Crystal Linux(1), Linux Immutability||g' shards.1.html > shards.1.html.tmp +sed 's| Tools(7)

||g' shards.1.html.tmp > shards.1.html echo "Remove one specific newline" cat shards.1.html | grep -v '
' > 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 '//c\ CC BY-SA 4.0' crystal.1.html > crystal.1.html.tmp mv crystal.1.html.tmp crystal.1.html echo "Change See also to hyperlinks" -sed 's|

axtlos(7), Project Shards(1)

|axtlos(7), Project Shards(1)|g' crystal.1.html > crystal.1.html.tmp -mv crystal.1.html.tmp crystal.1.html +sed 's|

axtlos(7), Project Shards(1), Linux Immutability||g' crystal.1.html > crystal.1.html.tmp +sed 's| 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 "Replace dat with license" +sed '//c\ CC BY-SA 4.0' lit.7.html > lit.7.html.tmp +mv lit.7.html.tmp lit.7.html +echo "Change See also to hyperlinks" +sed 's|

axtlos(7) Project Shards(1), Crystal||g' lit.7.html > lit.7.html.tmp +sed 's|Linux(1)

|
\naxtlos(7), \nProject Shards(1), \nCrystal Linux(1)|g' lit.7.html.tmp > lit.7.html + +echo "Succesfully generated lit(7)" -- cgit v1.2.3