Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Sun Oct 8 17:25:07 2023 -0300
Parent: 37550ed
Added list to go mod
diff --git a/post-receive b/post-receive
index a6a6b2e..db86005 100755
--- a/post-receive
+++ b/post-receive
@@ -264,8 +264,10 @@ creategomod() {
PREFIX="${OUT%/*}/dovel.email/$REPO"
[ -d "$PREFIX/@v" ] || mkdir -p "$PREFIX/@v"
+
(cd "$TMP" && find * -type f -print | zip -@ "$PREFIX/@v/$1.zip")
echo "{\"Version\":\"$1\"}" > "$PREFIX/@v/$1.info"
+ echo "$1" >> "$PREFIX/@v/list
cp "$TMP/dovel.email/$REPO@$1/go.mod" "$PREFIX/@v/$1.mod"
rm -rf "$TMP"