#!/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 fi # cd into website-redirector repository cd website-redirector # remove 'out' directory rm -rf out # Add general links generate-link "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 # 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" # Add index cat << EOF > out/index.html
Hai! Du bist auf der Weiterleitungswebseite von JeremyStarTM gelandet.
Du kannst den Quellcode dieser Seite hier einsehen.
Hier ein paar Beispiellinks für dich: