:: commit 296ed0e72ca594ecea727d05551fbdb946dc9f44

Kamila Szewczyk <kspalaiologos@gmail.com> — 2022-09-01 15:52

parents: ba048be30c

bz3more manpage

diff --git a/bz3more b/bz3more
index 17f22c7..5062f73 100644
--- a/bz3more
+++ b/bz3more
@@ -4,5 +4,5 @@ for FILE
 do
   test $# -lt 2 ||
     printf '::::::::::::::\n%s\n::::::::::::::\n' "$FILE" || break
-  bzip3 -Bcd -- "$FILE"
+  bz3cat -- "$FILE"
 done 2>&1 | eval ${PAGER-more}
diff --git a/bz3more.1 b/bz3more.1
index 63fc859..78268bf 100644
--- a/bz3more.1
+++ b/bz3more.1
@@ -1 +1,15 @@
-.so man1/bzip3.1
\ No newline at end of file
+.TH BZ3MORE 1
+
+.SH "NAME"
+\fBbz3more\fR \- view bzip3\-compressed files
+
+.SH "SYNOPSIS"
+\fBbz3more\fR [\fIflags\fR] [\fIfile\fR \.\.\.]
+
+.SH "DESCRIPTION"
+\fBbz3more\fR runs \fBless (1)\fR on files or stdin,
+if no files argument is given, after decompressing them
+with \fBbz3cat (1)\fR\.
+
+.SH "SEE ALSO"
+\fBbzip3 (1)\fR, \fBmore (1)\fR
\ No newline at end of file
diff --git a/bzip3.1 b/bzip3.1
index bed2e31..f446194 100644
--- a/bzip3.1
+++ b/bzip3.1
@@ -1,4 +1,4 @@
-.TH bzip3 1
+.TH BZIP3 1
 .SH NAME
 bzip3 \- an efficient statistical file compressor and spiritual successor to bzip2
 
@@ -16,28 +16,28 @@ is equivalent to
 .SH DESCRIPTION
 Compress or decompress a file using run length encoding and Lempel Ziv
 prediction, followed by the Burrows-Wheeler transform and arithmetic coding.
-.BR bzip3 ,
+.B bzip3 ,
 like its ancestor
-.BR bzip2 ,
+.B bzip2 ,
 excels at compressing text or source code.
 
 The command-line options are deliberately very similar to
 those of
-.BR bzip2,
+.B bzip2,
 but they are not identical.
 .PP
-.BR bzip3
+.B bzip3
 expects at most two filenames intertwined with flags.
-.BR bzip3
+.B bzip3
 will by default not overwrite existing files.
 If this behaviour is intended, use the \-f flag.
 
 If no file names are specified,
-.BR bzip3
+.B bzip3
 will compress from standard input to standard output, refusing
 to output binary data to a terminal. The \-e flag (encode) is implied.
 
-.BR bzip3
+.B bzip3
 .B \-d
 decompresses data from standard input to the standard output,
 refusing to read from a terminal.
@@ -48,7 +48,7 @@ output.
 
 If the \-c flag is present, bzip3 will read from the specified
 file and output data to standard output instead. Otherwise, if decoding,
-.BR bzip3
+.B bzip3
 will try to guess the decompressed filename by removing the
 .I .bz3
 extension. If not present, an error will be reported. If encoding,
@@ -60,10 +60,10 @@ extension to the input filename.
 .TP
 .B \-B --batch
 Enable batch mode. By default,
-.BR bzip3
+.B bzip3
 will error if more than two files are passed, and the two files specified
 are always treated as input and output. The batch mode makes
-.BR bzip3
+.B bzip3
 treat every file as input, so for example
 .I bzip3 -Bd *.bz3
 will decompress all
@@ -108,7 +108,7 @@ is written to the file. The file format has constant overhead of 9 bytes per
 file and from 9 to 17 bytes per block. Random data is coded so that expansion
 is generally under 0.8%.
 
-.BR bzip3
+.B bzip3
 uses 32-bit CRC to ensure that the decompressed version of a file is
 identical to the original. This guards against corruption of the
 compressed data. 
@@ -135,3 +135,6 @@ https://github.com/kspalaiologos/bzip3
 Thanks to: Ilya Grebnov, Chloe Strachan, Caleb Maclennan, Ilya Muravyov and everyone
 who sent patches, helped with portability problems, encouraged me to work on bzip3
 and lent me machines for performance tests.
+
+.SH "SEE ALSO"
+\fBbzip2 (1)\fR
\ No newline at end of file
tab: 248 wrap: offon