Added lz4c & lz4cat man pages
authorYann Collet <yann.collet.73@gmail.com>
Tue, 15 Apr 2014 14:47:48 +0000 (16:47 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Tue, 15 Apr 2014 14:47:48 +0000 (16:47 +0200)
Makefile
NEWS
programs/Makefile
programs/lz4c.1 [new file with mode: 0644]
programs/lz4cat.1 [new file with mode: 0644]

index f71cdd1..58f56a2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,8 @@ TEXT = lz4.c lz4.h lz4hc.c lz4hc.h \
        $(PRGDIR)/lz4io.c $(PRGDIR)/lz4io.h \
        $(PRGDIR)/bench.c $(PRGDIR)/bench.h \
        $(PRGDIR)/xxhash.c $(PRGDIR)/xxhash.h \
-       $(PRGDIR)/lz4.1 $(PRGDIR)/Makefile $(PRGDIR)/COPYING
+       $(PRGDIR)/lz4.1 $(PRGDIR)/lz4c.1 $(PRGDIR)/lz4cat.1 \
+       $(PRGDIR)/Makefile $(PRGDIR)/COPYING
 NONTEXT = LZ4_Streaming_Format.odt
 SOURCES = $(TEXT) $(NONTEXT)
 
diff --git a/NEWS b/NEWS
index eb72473..16e4fd8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
 r117:
+Added : man pages for lz4c and lz4cat
 fix : block-dependency command line (issue 127)
 fix : lz4fullbench (issue 128)
 
index fc42ac0..a1814b6 100644 (file)
@@ -85,11 +85,15 @@ clean:
 ifneq (,$(filter $(shell uname),Linux Darwin))
 
 install: lz4 lz4c
+       @echo Installing binaries
        @install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/
        @install -m 755 lz4   $(DESTDIR)$(BINDIR)/lz4
        @ln -sf lz4 $(DESTDIR)$(BINDIR)/lz4cat
        @install -m 755 lz4c  $(DESTDIR)$(BINDIR)/lz4c
+       @echo Installing man pages
        @install -m 644 lz4.1 $(DESTDIR)$(MANDIR)/lz4.1
+       @install -m 644 lz4c.1 $(DESTDIR)$(MANDIR)/lz4c.1
+       @install -m 644 lz4cat.1 $(DESTDIR)$(MANDIR)/lz4cat.1
        @echo lz4 installation completed
 
 uninstall:
diff --git a/programs/lz4c.1 b/programs/lz4c.1
new file mode 100644 (file)
index 0000000..fed6c8b
--- /dev/null
@@ -0,0 +1,33 @@
+\"
+\" lz4c.1: This is a manual page for 'lz4c' program. This file is part of the
+\" lz4 <https://code.google.com/p/lz4/> project.
+\"
+
+\" No hyphenation
+.hy 0
+.nr HY 0
+
+.TH lz4c "1" "2014-04-15" "lz4c" "User Commands"
+.SH NAME
+\fBlz4\fR - Extremely fast compression algorithm
+
+.SH SYNOPSIS
+.TP 5
+\fBlz4c\fR [\fBOPTIONS\fR] [-|INPUT-FILE] <OUTPUT-FILE>
+
+.SH DESCRIPTION
+.PP
+\fBlz4c\fR is the legacy version of \fBlz4\fR.
+As such, it supports older supplementary legacy commands.
+\fBlz4c\fR is now deprecated.
+It is recommended to use \fBlz4\fR instead whenever possible.
+
+To get a list of commands specific to lz4c, do :
+lz4c -h
+
+
+.SH BUGS
+Report bugs at:- https://code.google.com/p/lz4/
+
+.SH AUTHOR
+Yann Collet
\ No newline at end of file
diff --git a/programs/lz4cat.1 b/programs/lz4cat.1
new file mode 100644 (file)
index 0000000..fb33fd5
--- /dev/null
@@ -0,0 +1,34 @@
+\"
+\" lz4cat.1: This is a manual page for 'lz4cat' program. This file is part of
+\" the lz4 <https://code.google.com/p/lz4/> project.
+\"
+
+\" No hyphenation
+.hy 0
+.nr HY 0
+
+.TH lz4cat "1" "2014-04-15" "lz4cat" "User Commands"
+.SH NAME
+\fBlz4cat\fR - Extremely fast compression algorithm
+
+.SH SYNOPSIS
+.TP 5
+\fBlz4cat\fR [\fBOPTIONS\fR] [-|INPUT-FILE] <OUTPUT-FILE>
+
+.SH DESCRIPTION
+.PP
+\fBlz4\fR is an extremely fast lossless compression algorithm.
+
+\fBlz4cat\fR is an utility based on \fBlz4\fR.
+
+\fBlz4cat\fR is equivalent to \fBlz4 -cd\fR,
+which forces decompression and redirect its output to the console.
+
+All other options are the same as \fBlz4\fR ones (man lz4).
+
+
+.SH BUGS
+Report bugs at:- https://code.google.com/p/lz4/
+
+.SH AUTHOR
+Yann Collet
\ No newline at end of file