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

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

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