blob: 3179c4b783e785df37fe4a211308512289da2fad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
set -eu
readonly GiteaURL=https://code.causal.agency/june/src/src/branch/master/bin
src=$1
man=${2:-}
./hi -f html -o document,tab=4 -n "${src}" /dev/null
cat <<- EOF
<code><a href="${GiteaURL}/${src}">${src} in git</a></code>
EOF
[ -f "${man}" ] && man -P cat "${man}" | ./ttpre
./hi -f html -o anchor "${src}"
|