summary refs log tree commit diff
path: root/doc/rfc/rfc.in
blob: 16081c83edc10300ca6785a947714bc381edfdaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -eu

mktemp='mktemp -t rfc'
[ "$(uname)" = 'OpenBSD' ] && mktemp="${mktemp}.XXXXXXXXXX"

rfc=%%PREFIX%%/share/rfc/"rfc${1:--index}.txt"
tags=$($mktemp)
trap 'rm "${tags}"' EXIT

if test -f "${rfc}.gz"; then
	txt=$($mktemp)
	trap 'rm "${txt}" "${tags}"' EXIT
	gunzip -c "${rfc}.gz" >"${txt}"
	rfc=$txt
fi

%%PREFIX%%/bin/rfctags "${rfc}" >"${tags}"
${PAGER:-less} -T "${tags}" "${rfc}"
25b&follow=1'>Remove hacky tagging from hilexJune McEnroe 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe 2021-01-12Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe