diff options
author | June McEnroe <june@causal.agency> | 2021-01-18 16:56:05 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-18 16:56:05 -0500 |
commit | 73f6b84e9cfd045d68e30727a57dbd94ad8ae397 (patch) | |
tree | a59c6c02b7d0240153c5bcb2ea56ae9f0c999b38 /doc/rfc/rfc.in | |
parent | Publish "reusing tags" (diff) | |
download | src-73f6b84e9cfd045d68e30727a57dbd94ad8ae397.tar.gz src-73f6b84e9cfd045d68e30727a57dbd94ad8ae397.zip |
Don't compress RFCs, add rfc(1) command
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}" |