diff options
| author | Hayden Hamilton <hayden@hhvn.uk> | 2026-06-07 17:12:59 +0100 |
|---|---|---|
| committer | Hayden Hamilton <hayden@hhvn.uk> | 2026-06-07 17:12:59 +0100 |
| commit | 627411f75fe98eb44cf286ca6c31c11de807c6c2 (patch) | |
| tree | 829079955c3ef0b7d621fe517f1665cb6a0bb321 /www/generate | |
| parent | 9956f441fc3f722825e21fb363f00869817401b3 (diff) | |
stagit script: symlink style.css for each repo + remove owner col
Diffstat (limited to 'www/generate')
| -rwxr-xr-x | www/generate/src/stagit | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/www/generate/src/stagit b/www/generate/src/stagit index 0506e0e..b884816 100755 --- a/www/generate/src/stagit +++ b/www/generate/src/stagit @@ -8,7 +8,10 @@ if (~ $domain ()) { gitdir = /var/git wwwdir = /var/www/htdocs/src.$domain -stagit-index $gitdir/* > $wwwdir/index.html +stagit-index $gitdir/* | \ + sed 's/<td><b>Owner<\/b><\/td>//' | \ + sed 's/<td><\/td>//' \ + > $wwwdir/index.html for (repo in $gitdir/*) { base = `{basename $repo} @@ -20,4 +23,7 @@ for (repo in $gitdir/*) { if (!test -e index.html) { ln -s log.html index.html } + if (!test -e style.css) { + ln -s ../style.css style.css + } } |