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
commit94f14c5bb6d85ae56b8442dd9fae6b724547c9b9 (patch)
treea2210b871c036bd9b44367d0c2f33ef8a305829e /bin/man1
parentAdd modem -r flag to set baud rate (diff)
downloadsrc-94f14c5bb6d85ae56b8442dd9fae6b724547c9b9.tar.gz
src-94f14c5bb6d85ae56b8442dd9fae6b724547c9b9.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 'bin/man1')
-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