From 31059a780d1be06f3d6af13715f68239169c7c32 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 4 May 2024 18:46:30 +0200 Subject: [PATCH] Fix generation issues --- build.sh | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/build.sh b/build.sh index b8683c9..00f95a6 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,6 @@ #!/bin/bash set -eo pipefail -# So we don't need to replace all lines for one single environment variable or sth else -function generate-link() { - LINKGEN_NO_DEFAULT=y ./build.sh $@ -} - # Clone website-redirector if not present if [ ! -f "website-redirector/build.sh" ]; then git submodule update --init --recursive @@ -16,21 +11,21 @@ cd website-redirector rm -rf out # Add general links -generate-link "website" "JeremyStarTM's website" "https://jstm.staropensource.de" +LINKGEN_NO_DEFAULT=y ./build.sh "website" "JeremyStarTM's website" "https://jstm.staropensource.de" # Add social links -generate-link "social-fedi" "JeremyStarTM's fediverse profile" "https://fly.staropensource.de/@jeremystartm" -generate-link "social-email" "JeremyStarTM's email address" "mailto:jeremystartm@staropensource.de" -generate-link "social-mail "JeremyStarTM's email address" "/social-email" -generate-link "social-discord" "JeremyStarTM's Discord guild" "https://discord.gg/4HEu5qkcU4 +LINKGEN_NO_DEFAULT=y ./build.sh "social-fedi" "JeremyStarTM's fediverse profile" "https://fly.staropensource.de/@jeremystartm" +LINKGEN_NO_DEFAULT=y ./build.sh "social-email" "JeremyStarTM's email address" "mailto:jeremystartm@staropensource.de" +LINKGEN_NO_DEFAULT=y ./build.sh "social-mail "JeremyStarTM's email address" "/social-email" +LINKGEN_NO_DEFAULT=y ./build.sh "social-discord" "JeremyStarTM's Discord guild" "https://discord.gg/4HEu5qkcU4 # Add repository links -generate-link "repos" "JeremyStarTM's repositories" "https://git.staropensource.de/JeremyStarTM" -generate-link "repos-kernel" "JeremyStarTM's optimized linux kernel repository" "https://git.staropensource.de/JeremyStarTM/kernel-optimized" -generate-link "repos-usrdotfiles" "JeremyStarTM's dotfiles" "https://git.staropensource.de/JeremyStarTM/punktdateien" -generate-link "repos-sysdotfiles" "JeremyStarTM's system-wide dotfiles" "https://git.staropensource.de/JeremyStarTM/syspunktdateien" -generate-link "repos-presencode" "Presencode repository" "https://git.staropensource.de/JeremyStarTM/Presencode" -generate-link "repos-osuboot" "osu!boot repository" "https://git.staropensource.de/JeremyStarTM/osuboot" -generate-link "repos-docker-pihole" "JeremyStarTM#s dockerized Pi-hole setup repository" "https://git.staropensource.de/JeremyStarTM/pihole-docker" -generate-link "repos-docker-minecraft" "JeremyStarTM's dockerized Minecraft server setup repository" "https://git.staropensource.de/JeremyStarTM/MCServerDocker" +LINKGEN_NO_DEFAULT=y ./build.sh "repos" "JeremyStarTM's repositories" "https://git.staropensource.de/JeremyStarTM" +LINKGEN_NO_DEFAULT=y ./build.sh "repos-kernel" "JeremyStarTM's optimized linux kernel repository" "https://git.staropensource.de/JeremyStarTM/kernel-optimized" +LINKGEN_NO_DEFAULT=y ./build.sh "repos-usrdotfiles" "JeremyStarTM's dotfiles" "https://git.staropensource.de/JeremyStarTM/punktdateien" +LINKGEN_NO_DEFAULT=y ./build.sh "repos-sysdotfiles" "JeremyStarTM's system-wide dotfiles" "https://git.staropensource.de/JeremyStarTM/syspunktdateien" +LINKGEN_NO_DEFAULT=y ./build.sh "repos-presencode" "Presencode repository" "https://git.staropensource.de/JeremyStarTM/Presencode" +LINKGEN_NO_DEFAULT=y ./build.sh "repos-osuboot" "osu!boot repository" "https://git.staropensource.de/JeremyStarTM/osuboot" +LINKGEN_NO_DEFAULT=y ./build.sh "repos-docker-pihole" "JeremyStarTM#s dockerized Pi-hole setup repository" "https://git.staropensource.de/JeremyStarTM/pihole-docker" +LINKGEN_NO_DEFAULT=y ./build.sh "repos-docker-minecraft" "JeremyStarTM's dockerized Minecraft server setup repository" "https://git.staropensource.de/JeremyStarTM/MCServerDocker" # Add index cat << EOF > out/index.html