summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 06:45:07 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 06:45:07 +0000
commitcc61e405e37aa8d68feb6b8550089d1a8f8c1307 (patch)
treec2e0f6f33d11783cd31ca51dd4b2d2d46977c836
parentAdding debian version 0.1-1. (diff)
downloadlzd-cc61e405e37aa8d68feb6b8550089d1a8f8c1307.tar.xz
lzd-cc61e405e37aa8d68feb6b8550089d1a8f8c1307.zip
Merging upstream version 0.2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
-rw-r--r--ChangeLog5
-rw-r--r--INSTALL18
-rw-r--r--NEWS4
-rw-r--r--README5
-rwxr-xr-xconfigure2
-rw-r--r--main.cc3
-rwxr-xr-xtestsuite/check.sh7
7 files changed, 27 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a64682..c3be740 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-06 Antonio Diaz Diaz <antonio@gnu.org>
+
+ * Version 0.2 released.
+ * main.c: Added a missing '#include' for OS/2.
+
2013-03-21 Antonio Diaz Diaz <ant_diaz@teleline.es>
* Version 0.1 released.
diff --git a/INSTALL b/INSTALL
index 54406be..09ac834 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,7 +1,7 @@
Requirements
------------
You will need a C++ compiler.
-I use gcc 4.7.2 and 3.3.6, but the code should compile with any
+I use gcc 4.8.0 and 3.3.6, but the code should compile with any
standards compliant compiler.
Gcc is available at http://gcc.gnu.org.
@@ -10,24 +10,24 @@ Procedure
---------
1. Unpack the archive if you have not done so already:
- lzip -cd lzip[version].tar.lz | tar -xf -
+ lzip -cd lzd[version].tar.lz | tar -xf -
or
- gzip -cd lzip[version].tar.gz | tar -xf -
+ gzip -cd lzd[version].tar.gz | tar -xf -
-This creates the directory ./lzip[version] containing the source from
+This creates the directory ./lzd[version] containing the source from
the main archive.
-2. Change to lzip directory and run configure.
+2. Change to lzd directory and run configure.
(Try 'configure --help' for usage instructions).
- cd lzip[version]
+ cd lzd[version]
./configure
3. Run make.
make
-4. Optionally, type 'make check' to run the tests that come with lzip.
+4. Optionally, type 'make check' to run the tests that come with lzd.
5. Type 'make install' to install the program and any data files and
documentation.
@@ -39,7 +39,7 @@ the main archive.
Another way
-----------
-You can also compile lzip into a separate directory. To do this, you
+You can also compile lzd into a separate directory. To do this, you
must use a version of 'make' that supports the 'VPATH' variable, such
as GNU 'make'. 'cd' to the directory where you want the object files
and executables to go and run the 'configure' script. 'configure'
@@ -54,7 +54,7 @@ After running 'configure', you can run 'make' and 'make install' as
explained above.
-Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz.
+Copyright (C) 2013 Antonio Diaz Diaz.
This file is free documentation: you have unlimited permission to copy,
distribute and modify it.
diff --git a/NEWS b/NEWS
index 5f057ce..4caf5f7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,3 @@
-Changes in version 0.1:
+Changes in version 0.2:
-Initial release.
+Added a missing "#include" for OS/2.
diff --git a/README b/README
index c7546a7..ed832ca 100644
--- a/README
+++ b/README
@@ -4,8 +4,9 @@ Lzd is a very simplified decompressor for lzip files with an educational
purpose. Studying its source is a good first step to understand how lzip
works. It is not safe to use lzd for any real work.
-The source of lzd is also used in the lzip manual as a reference
-decompressor in the description of the lzip file format.
+The source of lzd is used in the lzip manual as a reference decompressor
+in the description of the lzip file format. Reading the lzip manual will
+help you understand the source.
Lzd decompresses from standard input to standard output. Lzd will
correctly decompress the concatenation of two or more compressed files.
diff --git a/configure b/configure
index e2b6a47..7b3f916 100755
--- a/configure
+++ b/configure
@@ -8,7 +8,7 @@
args=
no_create=
pkgname=lzd
-pkgversion=0.1
+pkgversion=0.2
progname=lzd
srctrigger=decoder.cc
diff --git a/main.cc b/main.cc
index e9c16a9..bba5c6a 100644
--- a/main.cc
+++ b/main.cc
@@ -9,7 +9,7 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
- Return values: 0 for a normal exit, 1 for environmental problems
+ Exit status: 0 for a normal exit, 1 for environmental problems
(file not found, invalid flags, I/O errors, etc), 2 to indicate a
corrupt or invalid input file.
*/
@@ -22,6 +22,7 @@
#include <stdint.h>
#include <unistd.h>
#if defined(__MSVCRT__) || defined(__OS2__)
+#include <fcntl.h>
#include <io.h>
#endif
diff --git a/testsuite/check.sh b/testsuite/check.sh
index 6dd7bb8..5fc6d18 100755
--- a/testsuite/check.sh
+++ b/testsuite/check.sh
@@ -27,10 +27,13 @@ fail=0
printf "testing lzd-%s..." "$2"
-"${LZIP}" < "${in_lz}" | cmp "${in}" - || fail=1
+"${LZIP}" < "${in_lz}" > copy || fail=1
+cmp "${in}" copy || fail=1
printf .
+
+cat "${in}" "${in}" > in2 || framework_failure
cat "${in_lz}" "${in_lz}" | "${LZIP}" > copy2 || fail=1
-cat "${in}" "${in}" | cmp copy2 - || fail=1
+cmp in2 copy2 || fail=1
printf .
echo