2024-05-04 17:48:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
# 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
|
2024-05-04 18:46:30 +02:00
|
|
|
LINKGEN_NO_DEFAULT=y ./build.sh "website" "JeremyStarTM's website" "https://jstm.staropensource.de"
|
2024-05-04 17:48:37 +02:00
|
|
|
# Add social links
|
2024-05-04 18:46:30 +02:00
|
|
|
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"
|
2024-05-04 18:48:09 +02:00
|
|
|
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"
|
2024-05-04 17:48:37 +02:00
|
|
|
# Add repository links
|
2024-05-04 18:46:30 +02:00
|
|
|
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"
|
2024-05-04 17:48:37 +02:00
|
|
|
# Add index
|
|
|
|
cat << EOF > out/index.html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2024-05-04 18:44:23 +02:00
|
|
|
<head>
|
2024-05-04 18:45:34 +02:00
|
|
|
<title>Hier findest du nix</title>
|
2024-05-04 18:44:39 +02:00
|
|
|
<meta charset="UTF-8"/>
|
2024-05-04 18:44:23 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<center>
|
|
|
|
<p>Hai! Du bist auf der Weiterleitungswebseite von JeremyStarTM gelandet.</p>
|
|
|
|
<p>Du kannst den Quellcode dieser Seite <a href="/repos-redirector">hier</a> einsehen.</p>
|
|
|
|
<br/>
|
|
|
|
<p>Hier ein paar Beispiellinks für dich:</p>
|
|
|
|
<p><a href="/website">[website]</a> <a href="/social-fedi">[social-fedi]</a> <a href="/repos">[repos]</a></p>
|
|
|
|
</center>
|
|
|
|
</body>
|
2024-05-04 17:48:37 +02:00
|
|
|
</html>
|
|
|
|
EOF
|
|
|
|
# Add robots.txt
|
|
|
|
cat << EOF > out/robots.txt
|
|
|
|
User-Agent: *
|
|
|
|
Disallow: /
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Move 'out' directory to parent directory
|
|
|
|
rm -rf ../out
|
|
|
|
mv out ..
|