From 750193cbfa54a4601d0a5c940dadc673346d33a9 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 20 Feb 2019 19:54:45 -0500 Subject: Factor out html.sh and produce html for all sources Except for gfx-cocoa because I don't have an Objective-C highlighter. Also hypothetically the .h rule could match up headers with .3 manual pages if I cared to write them. --- bin/html.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bin/html.sh (limited to 'bin/html.sh') diff --git a/bin/html.sh b/bin/html.sh new file mode 100644 index 00000000..3179c4b7 --- /dev/null +++ b/bin/html.sh @@ -0,0 +1,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 + ${src} in git +EOF +[ -f "${man}" ] && man -P cat "${man}" | ./ttpre +./hi -f html -o anchor "${src}" -- cgit 1.4.1