summaryrefslogtreecommitdiff
path: root/www/generate/src/stagit
diff options
context:
space:
mode:
authorHayden Hamilton <hayden@hhvn.uk>2026-06-06 18:25:06 +0100
committerHayden Hamilton <hayden@hhvn.uk>2026-06-06 18:25:06 +0100
commit961d741871e79a131a4655023fb6f713cb83c265 (patch)
tree4275baebc994e1acd2a62417b21fdc828677db03 /www/generate/src/stagit
parent413e5ce219527fe56c9976571a1ffc35743d35fc (diff)
stagit, go module handling, git hooks
Diffstat (limited to 'www/generate/src/stagit')
-rwxr-xr-xwww/generate/src/stagit18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/generate/src/stagit b/www/generate/src/stagit
new file mode 100755
index 0000000..ceefc88
--- /dev/null
+++ b/www/generate/src/stagit
@@ -0,0 +1,18 @@
+#!/bin/rc
+
+gitdir = /var/git
+wwwdir = /var/www/htdocs/src.hhvn.uk
+
+stagit-index $gitdir/* > $wwwdir/index.html
+
+for (repo in $gitdir/*) {
+ base = `{basename $repo}
+ echo GEN $base
+
+ mkdir -p $wwwdir/$base
+ cd $wwwdir/$base
+ stagit -c .cache -u 'https://src.hhvn.uk/'$base $repo
+ if (!test -e index.html) {
+ ln -s log.html index.html
+ }
+}