diff options
Diffstat (limited to '')
-rw-r--r-- | doc/rfc/rfc.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/rfc/rfc.in b/doc/rfc/rfc.in new file mode 100644 index 00000000..adf297eb --- /dev/null +++ b/doc/rfc/rfc.in @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +rfc=%%PREFIX%%/share/rfc/"rfc${1:--index}.txt" +tags=$(mktemp -t rfc) +trap 'rm "${tags}"' EXIT +%%PREFIX%%/bin/rfctags "${rfc}" >"${tags}" +${PAGER:-less} -T "${tags}" "${rfc}" |