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

export LANG=en_US.UTF-8
case "$1" in
	(*.[1-9])
		/usr/local/libexec/about-filter "$@"
		printf '</code></pre></td><td><pre><code>'
		;;
	(*)
		exec /usr/local/libexec/hi -t -n "$1" -f html -o anchor
		;;
esac