summary refs log tree commit diff
path: root/bin/html.sh
blob: cb7f1a66c24c1992967cbb68a3202c5e23a70584 (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 | sed '/<pre/d'
cat <<- EOF
	<code><a href="${GiteaURL}/${src}">${src} in git</a></code>
EOF
[ -f "${man}" ] && man -P cat "${PWD}/${man}" | ./ttpre
./hi -f html -o anchor "${src}"
>Add nethackrcJune McEnroe 2017-07-23Remove useless setuid in briJune McEnroe 2017-07-23Clean up hnel a tiny bitJune McEnroe 2017-07-21Set window size in hnelJune McEnroe 2017-07-21Add hnelJune McEnroe 2017-07-19chmod 600 in dtchJune McEnroe