:: commit 6f0f57b6979cbddb7e30d6e27e3692adc545e689

Kamila Szewczyk <kspalaiologos@gmail.com> — 2022-09-01 19:29

parents: 296ed0e72c

unbzip3 tool

diff --git a/Makefile.am b/Makefile.am
index e652ea7..ae22cc9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,7 @@ bzip3_SOURCES = src/main.c $(libbzip3_la_SOURCES)
 
 dist_man_MANS = bzip3.1 bz3cat.1 bz3more.1
 
-dist_bin_SCRIPTS = bz3cat bz3more
+dist_bin_SCRIPTS = bz3cat bz3more unbzip3
 
 CLEANFILES = $(bin_PROGRAMS)
 
diff --git a/bzip3.1 b/bzip3.1
index f446194..9c68320 100644
--- a/bzip3.1
+++ b/bzip3.1
@@ -16,9 +16,9 @@ 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.
-.B bzip3 ,
+.B bzip3,
 like its ancestor
-.B bzip2 ,
+.B bzip2,
 excels at compressing text or source code.
 
 The command-line options are deliberately very similar to
@@ -37,9 +37,10 @@ If no file names are specified,
 will compress from standard input to standard output, refusing
 to output binary data to a terminal. The \-e flag (encode) is implied.
 
-.B bzip3
-.B \-d
-decompresses data from standard input to the standard output,
+.B unbzip3
+(or,
+.B bzip3 \-d
+equivalently) decompresses data from standard input to the standard output,
 refusing to read from a terminal.
 
 If two files are specified, the first one is used in place of
diff --git a/unbzip3 b/unbzip3
new file mode 100644
index 0000000..4c8300c
--- /dev/null
+++ b/unbzip3
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec bzip3 -d "$@"
diff --git a/unbzip3.1 b/unbzip3.1
new file mode 100644
index 0000000..63fc859
--- /dev/null
+++ b/unbzip3.1
@@ -0,0 +1 @@
+.so man1/bzip3.1
\ No newline at end of file
tab: 248 wrap: offon