summary refs log tree commit diff
path: root/bin/man1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-15 23:52:37 -0500
committerJune McEnroe <june@causal.agency>2020-12-15 23:52:37 -0500
commitc401b3d4af2462e96aa327f1282e2882aa94609a (patch)
tree8c803064ffbb65a37882466a61cedb57de3457aa /bin/man1
parentAdd modem -r flag to set baud rate (diff)
downloadsrc-c401b3d4af2462e96aa327f1282e2882aa94609a.tar.gz
src-c401b3d4af2462e96aa327f1282e2882aa94609a.zip
Add bibsort
My first perl script! hi doesn't have syntax highlighting for perl, and
I don't think I could sanely implement it, but oh well.
Diffstat (limited to '')
-rw-r--r--bin/man1/bibsort.137
1 files changed, 37 insertions, 0 deletions
diff --git a/bin/man1/bibsort.1 b/bin/man1/bibsort.1
new file mode 100644
index 00000000..9d036920
--- /dev/null
+++ b/bin/man1/bibsort.1
@@ -0,0 +1,37 @@
+.Dd December 15, 2020
+.Dt BIBSORT 1
+.Os
+.
+.Sh NAME
+.Nm bibsort
+.Nd reformat bibliography
+.
+.Sh SYNOPSIS
+.Nm
+.Op Ar file
+.
+.Sh DESCRIPTION
+.Nm
+reformats on standard output
+the
+.Em STANDARDS
+section of the
+.Xr mdoc 7
+manual page
+.Ar file
+or standard input.
+Bibliographic references
+are sorted by author last names,
+and formatted in an item list
+with macro lines appearing
+in the order they are formatted by
+.Xr mandoc 1 .
+Additionally,
+.Ic \&%N
+macros referencing RFC numbers
+are rewritten to
+.Ic \&%R
+macros.
+.
+.Sh EXAMPLES
+.Dl :%!bibsort