list

scripts

Repo containing scripts to be used with dovel, and git hooks that powers our web interface.

curl -O https://dovel.email/scripts.tar tar

fead500

Author: blmayer (bleemayer@gmail.com)

Date: Fri Oct 6 17:41:39 2023 -0300

Parent: a07b24b

Adjusted go mod path

Diff

aux.sh

diff --git a/aux.sh b/aux.sh
index 9540874..7298c5d 100755
--- a/aux.sh
+++ b/aux.sh
@@ -13,7 +13,7 @@ pagehead() {
 		<meta name="keywords" content="email, dovel, blmayer, self host, software, smtp, web, interface">
 		<meta name="viewport" content="width=device-width, initial-scale=1">
 		<meta name="color-scheme" content="light dark">
-		$([ "$1" ] && echo "<meta name=\"go-import\" content=\"/$1 mod https://dovel.email\">")
+		$([ "$1" ] && echo "<meta name=\"go-import\" content=\"dovel.email/$1 mod https://dovel.email\">")
 		<style>
 		body {
 			max-width: 43em;

post-receive

diff --git a/post-receive b/post-receive
index 2b9b969..b2f068b 100755
--- a/post-receive
+++ b/post-receive
@@ -258,10 +258,11 @@ creategomod() {
 	TMP="$(mktemp -d)"
 	mkdir -p "$TMP/dovel.email/$REPO@$1"
 	git --work-tree="$TMP/dovel.email/$REPO@$1/" checkout -f main
-	(cd "$TMP" && zip "$OUT/@v/$1.zip" -r * )
 
-	[ -d "$OUT/@latest" ] || mkdir -p "$OUT/@latest"
-	cp "$OUT/@v/$1.zip" "$OUT/@latest/"
+	PREFIX="${OUT%/*}/dovel.email/$REPO"
+	(cd "$TMP" && zip "$PREFIX/@v/$1.zip" -r * )
+	echo "{\"Version\":\"$1\"}" > "$PREFIX/@v/$1.info"
+
 	rm -rf "$TMP"
 }