hhvn.uk

Website, gopher, etc
git clone https://hhvn.uk/hhvn.uk
git clone git://hhvn.uk/hhvn.uk
Log | Files | Refs | Submodules

commit 3c2943ed2a573a3f7328c9c74065cf8d8442d756
parent f025619665da159b2b679e7a51ee4c0f759093f0
Author: hhvn <dev@hhvn.uk>
Date:   Thu,  9 May 2024 19:42:55 +0100

Fix stagit*gen scripts

Diffstat:
Mgen/stagit-create.rc | 2+-
Mgen/stagit-gopher-create.rc | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gen/stagit-create.rc b/gen/stagit-create.rc @@ -20,7 +20,7 @@ for (d in $repos/*) { mkdir -p $web ^ '/' ^ $base @{ cd $web ^ '/' ^ $base - stagit -c '.cache' -u 'git://hhvn.uk/' ^ $base $d + stagit -G 'hhvn.uk/'$base -g 'https://hhvn.uk/'$base -g 'git://hhvn.uk/'$base -c '.cache' -u 'https://hhvn.uk/'$base'/' $d ln -sf log.html index.html ln -sf ../index.css style.css diff --git a/gen/stagit-gopher-create.rc b/gen/stagit-gopher-create.rc @@ -24,7 +24,8 @@ for (repo in $repos) { @{ mkdir -p $dest cd $dest - stagit-gopher -b $stagitdir/$display -l 75 $repo + stagit-gopher -b $stagitdir/$display -l 75 -u 'gopher://hhvn.uk/'$display'/' $repo + sed -i '1,1s~$~\ngit clone git://hhvn.uk/'$base'/~' log.gph ln -sf log.gph index.gph } printf 'done\n'