summary refs log tree commit diff
path: root/www/git.causal.agency/about-filter.sh
blob: 7a93d471bd6bb954615d08b2bad3d9850b0fc690 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -eu

options=fragment,man=%N.%S,includes=../tree/%I

case "$1" in
	(README.[1-9])
		exec mandoc -T html -O $options
		;;
	(*.[1-9])
		exec mandoc -T html -O $options,toc
		;;
	(*)
		exec hilex -l text -f html -o pre
		;;
esac