From 28e8bdf7f8286bd431b7f3b709e79f3827b31469 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 24 Dec 2025 13:54:03 +0900 Subject: updates --- debian/.local/bin/hugow | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 debian/.local/bin/hugow (limited to 'debian/.local/bin/hugow') diff --git a/debian/.local/bin/hugow b/debian/.local/bin/hugow new file mode 100755 index 0000000..0460174 --- /dev/null +++ b/debian/.local/bin/hugow @@ -0,0 +1,70 @@ +#!/bin/sh +set -eu + +repodir="$HOME/Private/repos/THESIAH" +out="$repodir/public/recordings/index.html" +server="${THESIAH_SERVER:-root@thesiah.xyz}" +dest="/var/www/thesiah/recordings/" +defaults="sy after foramonth" +src="$repodir/public/recordings/" + +cd "$repodir" +hugo --cleanDestinationDir + +if [ ! -f "$out" ]; then + echo "error: not found: $out" >&2 + exit 1 +fi + +tmp="$(mktemp "$out.XXXXXXXX.tmp")" + +awk -v defaults="$defaults" ' +BEGIN { + n = split(defaults, a, /[[:space:]]+/) + insert = "" + for (i = 1; i <= n; i++) { + if (a[i] == "") continue + name = a[i] ".mp4" + insert = insert \ +"