diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 06:45:07 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 06:45:07 +0000 |
commit | cc61e405e37aa8d68feb6b8550089d1a8f8c1307 (patch) | |
tree | c2e0f6f33d11783cd31ca51dd4b2d2d46977c836 | |
parent | Adding debian version 0.1-1. (diff) | |
download | lzd-cc61e405e37aa8d68feb6b8550089d1a8f8c1307.tar.xz lzd-cc61e405e37aa8d68feb6b8550089d1a8f8c1307.zip |
Merging upstream version 0.2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | INSTALL | 18 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | README | 5 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | main.cc | 3 | ||||
-rwxr-xr-x | testsuite/check.sh | 7 |
7 files changed, 27 insertions, 17 deletions
@@ -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. @@ -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. @@ -1,3 +1,3 @@ -Changes in version 0.1: +Changes in version 0.2: -Initial release. +Added a missing "#include" for OS/2. @@ -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. @@ -8,7 +8,7 @@ args= no_create= pkgname=lzd -pkgversion=0.1 +pkgversion=0.2 progname=lzd srctrigger=decoder.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 |