From 365b8aff3a82a90f50cce5f0204941c64d865514 Mon Sep 17 00:00:00 2001 From: axtlos Date: Sat, 18 Mar 2023 23:21:42 +0100 Subject: Add crystal(1) and shards(1) --- generate.sh | 53 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 9 deletions(-) (limited to 'generate.sh') diff --git a/generate.sh b/generate.sh index 8fba86b..c376e56 100755 --- a/generate.sh +++ b/generate.sh @@ -1,14 +1,49 @@ #!/usr/bin/env sh -echo "Generate html" -mandoc -T html -O style=./style.css website.7 > website.7.html +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|

- Fedi

|

- Fedi: https://snowdin.town/axtlos

|g' website.7.html > website.7.html.tmp -mv website.7.html.tmp website.7.html +sed 's|

- Fedi

|

- Fedi: https://snowdin.town/axtlos

|g' axtlos.7.html > axtlos.7.html.tmp +mv axtlos.7.html.tmp axtlos.7.html echo "Adding Gifs" -sed 's||delete twitter, make a neocities!\nNo nazis! No fascists! No racism!\nPride flag\n|g' website.7.html > website.7.html.tmp -mv website.7.html.tmp website.7.html +sed 's||delete twitter, make a neocities!\nNo nazis! No fascists! No racism!\n|g' axtlos.7.html > axtlos.7.html.tmp +mv axtlos.7.html.tmp axtlos.7.html echo "Replace date with license" -sed 's|January 15, 2023|CC BY-SA 4.0|g' website.7.html > website.7.html.tmp -mv website.7.html.tmp website.7.html -echo "Succesfully generated website" +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 +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 '//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 +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)" +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 '//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 +echo "Succesfully generated crystal(1)" -- cgit v1.2.3