diff options
| author | Hayden Hamilton <hayden@hhvn.uk> | 2026-09-14 19:59:11 +0100 |
|---|---|---|
| committer | Hayden Hamilton <hayden@hhvn.uk> | 2026-09-14 19:59:11 +0100 |
| commit | 06adabffe759eafcd3932e98b0395dcbd95bc16c (patch) | |
| tree | fee8edf0150b049849f870b08495b26045dea272 /www/generate/breadcrumb | |
| parent | da348e3d7b56df2bf5bb243405d7a44eda893c79 (diff) | |
Switched to cgit -> remove stagit scripts
Diffstat (limited to 'www/generate/breadcrumb')
| -rwxr-xr-x | www/generate/breadcrumb | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/www/generate/breadcrumb b/www/generate/breadcrumb deleted file mode 100755 index 0f7e1f8..0000000 --- a/www/generate/breadcrumb +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/rc - -uri = $1 # eg, '/hbspbar/log.html' -domain = $2 # eg, hhvn.uk -subdomain = $3 # eg, src -elems = `('/' $nl){echo $uri} - -if (~ $domain ()) { - domain = `hostname -} - -fn plink { - printf '<a href="%s">%s</a>' $1 $2 -} - -fn text { - printf '%s' $1 -} - -if (! ~ $subdomain ()) { - plink '/' $subdomain - text '.' - plink 'https://'^$domain $domain -} else { - plink '/' $domain -} - -curi = '' -for (e in $elems) { - if (!~ $e '.') { - # special case for stagit - if (~ $subdomain src && ~ $e log.html) { - exit 0 - } - - # we're done - if (~ $e index.html) { - exit 0 - } - - curi = $curi ^ '/' ^ $e - - text ' > ' - plink $curi `$nl{echo $e | sed 's/\.html$//'} - } -} |