stagit-gopher

[fork] gopher git frontend
Log | Files | Refs | README | LICENSE

commit 9455a8de3e80881190c9d183a92930364f19c240
parent 4dcaa7f51f39d3cba5b7aaa91ef97d9921c15308
Author: hhvn <dev@hhvn.uk>
Date:   Fri, 25 Nov 2022 16:44:26 +0000

Remove create.rc

Diffstat:
Dcreate.rc | 35-----------------------------------
1 file changed, 0 insertions(+), 35 deletions(-)

diff --git a/create.rc b/create.rc @@ -1,35 +0,0 @@ -#!/bin/rc - -# Add my dir to $path -# This script should still be able to -# run if the binaries aren't installed. -path = ($path `$nl{dirname $0}) - -reposdir = /srv/git -repos = $reposdir/* -gopherdir = /srv/zfs/net -stagitdir = /git/o/ -destdir = $gopherdir ^ $stagitdir - -# Make index -if (test -f $reposdir/info) { - cp $reposdir/info $destdir/index.gph -} else { - rm $destdir/index.gph -} -stagit-gopher-index -b $stagitdir $repos | tail -n +2 >> $destdir/index.gph - -# Make repos -for (repo in $repos) { - display = `$nl{basename $repo '.git'} - dest = $destdir ^ $display - - printf '%s... ' $display - @{ - mkdir -p $dest - cd $dest - stagit-gopher -b $stagitdir/$display -l 75 $repo - ln -sf log.gph index.gph - } - printf 'done\n' -}