summary refs log tree commit diff
path: root/doc/rfc/rfc.in
blob: 958b09da250916c87d7aff1ad336c65f66b33493 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
set -eu

rfc=%%PREFIX%%/share/rfc/"rfc${1:--index}.txt"
tags=$(mktemp -t rfc.XXXXXXXXXX)
trap 'rm "${tags}"' EXIT
%%PREFIX%%/bin/rfctags "${rfc}" >"${tags}"
${PAGER:-less} -T "${tags}" "${rfc}"