Commit Graph

114 Commits

Author SHA1 Message Date
Yann Collet
1faa7e2698 bench: introduced hidden command -S
to benchmark multiple files with separate results
2018-03-19 17:19:25 -07:00
Yann Collet
dccf8826f1 lz4cli : minor rewrite of lz4c legacy commands
for clarity
2017-10-14 23:50:07 -07:00
Yann Collet
2d827e1b28 lz4cli : removed extension artefacts
It used to be useful for an old Windows variant which is no longer maintained.
2017-10-14 18:48:00 -07:00
W. Felix Handte
2bd85f4199 Add Dictionary Support to the Command Line Tool 2017-10-09 20:16:00 -04:00
Yann Collet
a30cba08f4 fixed a bunch of -Wcomma warnings
reported by @rvandermeulen (#398)
2017-09-10 14:32:38 -07:00
Yann Collet
a1f3a27e9b Merge branch 'dev' into installVars and fixed conflicts 2017-08-15 16:57:00 -07:00
Yann Collet
01cdbfb5fe lz4c legacy commands are now enabled at runtime based on link/binary name "lz4c"
instead of selected at compilation time depending on a macro.
This design makes it possible to have a single binary which supports both modes.

An advantageous side effect is that when doing `make; make install`
no additional binary is created during `make install`
(it used to create `lz4c`, because `make` would only build `lz4`)
2017-08-14 16:56:05 -07:00
Yann Collet
930a692110 cli : restored command -BX to enable block checksum (#322) 2017-08-11 17:58:46 -07:00
Chocobo1
a4ec7fa7b7 Fix gcc7 Wimplicit-fallthrough warnings
For the default Wimplicit-fallthrough=3 level,
the comment should start with "fall*"
2017-06-19 13:57:35 +08:00
Yann Collet
03d8586fca cli accept block sizes with KB / MB prefixes 2017-05-26 14:38:47 -07:00
Alexey Tourbin
a41df535f7 lz4cli.c: fix a comment: LZ4HC_DEFAULT_CLEVEL -> LZ4HC_CLEVEL_MAX
Actually the program only mentions LZ4HC_CLEVEL_MAX.
2017-04-29 16:18:37 +03:00
Yann Collet
84246b974e Merge pull request #341 from iburinoc/exematch
Ignore extensions in exe name matching
2017-03-24 20:42:27 -07:00
Sean Purcell
e9c3b14f29 Ignore extensions in exe name matching 2017-03-24 16:33:14 -07:00
Dmitry V. Levin
b1daffc4e5 cli: add GNU separator -- specifying that all following arguments are files
This option is supported by other compressors with compatible cli,
so add it to lz4 as well for better compatibility.
2017-03-23 03:48:51 +00:00
Chocobo1
44f95e92ea Fix printf specifier 2017-01-13 00:36:24 +08:00
Yann Collet
b41f9bb132 Merge pull request #292 from inikep/dev
improved POSIX
2016-12-22 11:58:29 +01:00
Yann Collet
52cac9a973 updated a few macros names 2016-12-22 11:41:05 +01:00
Przemyslaw Skibinski
64cbc4e1dc improved MinGW support 2016-12-21 10:22:40 +01:00
Przemyslaw Skibinski
452cc970d6 reordered definitons in platform.h 2016-12-20 23:38:32 +01:00
Przemyslaw Skibinski
6adf05d1ed improved platform.h 2016-12-20 18:56:09 +01:00
Przemyslaw Skibinski
2cfef13952 executables use platform.h 2016-12-20 18:05:43 +01:00
Yann Collet
de93e9e5d8 fix #285 : lz4cat doesn't work with stdin (reported by @beiDei8z) 2016-12-08 14:25:04 -08:00
Yann Collet
0280cf40dd fixed path-1, as suggested by @t-mat 2016-12-08 02:47:42 +01:00
Yann Collet
750a50cf67 fix #284, reported by @beiDei8z : added test cases for path/to/lz4cat 2016-12-07 14:49:04 -08:00
Yann Collet
01ffed25ad fix : invocation of path/to/unlz4 (#284), reported by @beiDei8z 2016-12-07 14:29:22 -08:00
Yann Collet
5eb547a608 fix #283 : implement LZ4_versionString(). 2016-12-04 20:05:36 +01:00
Yann Collet
a9a8dbf7c1 fixed minor display error when using -r 2016-11-28 04:01:02 -08:00
Yann Collet
8b233b228d added a few dates 2016-11-21 15:51:39 -08:00
Yann Collet
00fa1b9c01 fixed double ;; for Visual 2016-11-15 15:06:56 -08:00
Yann Collet
d2be69b144 fixed minor coverity warnings 2016-11-15 14:46:57 -08:00
Yann Collet
d5c9b39ddd minor code refactoring 2016-11-13 20:50:58 -08:00
Yann Collet
f42130ee44 cli : add --help command 2016-11-12 17:21:29 -08:00
Przemyslaw Skibinski
2278d1f02f custom block size 2016-11-10 16:31:10 +01:00
Yann Collet
f34808e4ae fixed some static analyzer warning 2016-11-09 17:39:53 -08:00
Yann Collet
46f74d79b7 fixed sparse on stdout 2016-11-09 16:57:33 -08:00
Yann Collet
fe48cef50e fixed multiples files on lz4cat (#184, by @libor-m) 2016-11-09 16:37:16 -08:00
Yann Collet
1b16805941 fix unused variable warning 2016-11-09 15:10:39 -08:00
Yann Collet
1b95d60c66 fixed synthetic benchmark mode
slightly optimized test mode
2016-11-09 15:04:55 -08:00
Yann Collet
acc48a3f85 fixed lz4cat
changed lz4-test order
2016-11-09 14:36:42 -08:00
Przemyslaw Skibinski
85f861fc49 bench.c: support notification level 2016-11-08 13:50:27 +01:00
Przemyslaw Skibinski
0f73ed5726 new Travis tests 2016-11-08 09:19:09 +01:00
Przemyslaw Skibinski
ef54f9f9dd added --rm option 2016-11-07 14:50:58 +01:00
Przemyslaw Skibinski
ef9d1b2d41 fixed --test 2016-11-07 12:13:12 +01:00
Yann Collet
473acf5aa9 Merge pull request #252 from inikep/dev
Dev
2016-11-04 13:54:19 -07:00
Nick Terrell
374090c7a7 Return error if input file does not exist.
Make `lz4 file-does-not-exist` return non-zero.
2016-11-04 11:58:10 -07:00
Przemyslaw Skibinski
e8a6067e8a updated lz4cli.c 2016-11-04 14:46:45 +01:00
Przemyslaw Skibinski
e7648f4fcc added -r option 2016-11-04 13:30:09 +01:00
Nick Terrell
136caa552b Rename passThrough to testMode 2016-11-03 18:50:25 -07:00
Nick Terrell
3dcafd35d4 Fix test mode and write to null
Fix test mode to not always return success.
Don't ask for permission to overwrite `nulmark`.

Before:

    > echo "hello world" > file
    > lz4 -t file
    successfully decoded 12 bytes
    > lz4 -tf file
    successfully decoded 12 bytes
    > lz4 file null
    Warning : /dev/null already exists
    Overwrite ? (Y/n) : n
    Error 12 : No. Operation aborted : /dev/null already exists
    > lz4 file /dev/null
    Warning : /dev/null already exists
    Overwrite ? (Y/n) : n
    Error 12 : No. Operation aborted : /dev/null already exists

After:

    > lz4 -t file
    Error 44 : Unrecognized header : file cannot be decoded
    > lz4 -tf file
    Error 44 : Unrecognized header : file cannot be decoded
    > lz4 file null
    Compressed 12 bytes into 31 bytes ==> 258.33%
    > lz4 file /dev/null
    Compressed 12 bytes into 31 bytes ==> 258.33%
2016-11-03 15:41:09 -07:00
Przemyslaw Skibinski
84cedb4632 updated links to LZ4 repository 2016-11-03 15:12:57 +01:00