aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/b3sum/build3
-rw-r--r--core/b3sum/checksums1
-rw-r--r--core/b3sum/files/b3sum.138
-rw-r--r--core/b3sum/sources1
4 files changed, 42 insertions, 1 deletions
diff --git a/core/b3sum/build b/core/b3sum/build
index 6c90cf8b..bf75d18d 100755
--- a/core/b3sum/build
+++ b/core/b3sum/build
@@ -1,4 +1,5 @@
#!/bin/sh -e
make PREFIX=/usr LDFLAGS=-static b3sum
-install -Dm755 b3sum "$1/usr/bin/b3sum"
+install -Dm755 b3sum "$1/usr/bin/b3sum"
+install -Dm644 b3sum.1 "$1/usr/share/man/man1/b3sum.1"
diff --git a/core/b3sum/checksums b/core/b3sum/checksums
index f7ffca7d..e50a9f13 100644
--- a/core/b3sum/checksums
+++ b/core/b3sum/checksums
@@ -1 +1,2 @@
a684ce0706dfc4cecc3a673617fbc05b32af908f265148bbd04e2c55aec7b499 0ed69e30.tar.gz
+554ce58c85ab177ca9704c97c9c7a53a6553ff53016efe5a0745a279c3a88d63 b3sum.1
diff --git a/core/b3sum/files/b3sum.1 b/core/b3sum/files/b3sum.1
new file mode 100644
index 00000000..b4332197
--- /dev/null
+++ b/core/b3sum/files/b3sum.1
@@ -0,0 +1,38 @@
+.Dd Jul 03, 2021
+.Dt b3sum 1
+.Sh NAME
+.Nm b3sum
+.Nd compute or check BLAKE3 message digests
+.Sh SYNOPSIS
+.Nm
+.Op Fl bct
+.Op Fl l Ar length
+.Op Ar file...
+.Sh DESCRIPTION
+.Nm
+writes BLAKE3 checksums of each
+.Ar file
+to stdout. If no
+.Ar file
+is given
+.Nm
+reads from the standard input.
+.Sh OPTIONS
+.Bl -tag
+.It Fl c
+Read list of BLAKE3 checksums from each
+.Ar file
+and check them. If no
+.Ar file
+is given
+.Nm
+reads from stdin.
+.It Fl b
+read in binary mode.
+.It Fl t
+read in text mode (default)
+.It Fl l Ar length
+Output the first
+.Ar length
+characters of the generated checksum.
+.El
diff --git a/core/b3sum/sources b/core/b3sum/sources
index a2b32b2c..84c829ca 100644
--- a/core/b3sum/sources
+++ b/core/b3sum/sources
@@ -1 +1,2 @@
https://git.sr.ht/~mcf/b3sum/archive/0ed69e30.tar.gz
+files/b3sum.1