summary refs log tree commit diff
path: root/doc/rfc/rfc.in
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-18 16:56:05 -0500
committerJune McEnroe <june@causal.agency>2021-01-18 16:56:05 -0500
commit73f6b84e9cfd045d68e30727a57dbd94ad8ae397 (patch)
treea59c6c02b7d0240153c5bcb2ea56ae9f0c999b38 /doc/rfc/rfc.in
parentPublish "reusing tags" (diff)
downloadsrc-73f6b84e9cfd045d68e30727a57dbd94ad8ae397.tar.gz
src-73f6b84e9cfd045d68e30727a57dbd94ad8ae397.zip
Don't compress RFCs, add rfc(1) command
Diffstat (limited to '')
-rw-r--r--doc/rfc/rfc.in8
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}"