aboutsummaryrefslogtreecommitdiff
path: root/archival/bbunzip.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-03-27 22:40:30 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-27 22:40:30 +0200
commit1f4447b2d439e6f11d95746bb5f611c353305859 (patch)
tree0f47681009046a12ee050b989b838c68493a6a2e /archival/bbunzip.c
parent700fbc308dd1f2e063180786cddfcc4abd6c10c0 (diff)
downloadbusybox-w32-1f4447b2d439e6f11d95746bb5f611c353305859.tar.gz
busybox-w32-1f4447b2d439e6f11d95746bb5f611c353305859.tar.bz2
busybox-w32-1f4447b2d439e6f11d95746bb5f611c353305859.zip
move help text from include/usage.src.h to archival/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r--archival/bbunzip.c76
1 files changed, 76 insertions, 0 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index c4cc5d821..734c9b269 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -167,6 +167,15 @@ char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext)
167 * 167 *
168 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 168 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
169 */ 169 */
170
171//usage:#define uncompress_trivial_usage
172//usage: "[-cf] [FILE]..."
173//usage:#define uncompress_full_usage "\n\n"
174//usage: "Decompress .Z file[s]\n"
175//usage: "\nOptions:"
176//usage: "\n -c Write to stdout"
177//usage: "\n -f Overwrite"
178
170#if ENABLE_UNCOMPRESS 179#if ENABLE_UNCOMPRESS
171static 180static
172IF_DESKTOP(long long) int FAST_FUNC unpack_uncompress(unpack_info_t *info UNUSED_PARAM) 181IF_DESKTOP(long long) int FAST_FUNC unpack_uncompress(unpack_info_t *info UNUSED_PARAM)
@@ -218,6 +227,28 @@ int uncompress_main(int argc UNUSED_PARAM, char **argv)
218 * See the license_msg below and the file COPYING for the software license. 227 * See the license_msg below and the file COPYING for the software license.
219 * See the file algorithm.doc for the compression algorithms and file formats. 228 * See the file algorithm.doc for the compression algorithms and file formats.
220 */ 229 */
230
231//usage:#define gunzip_trivial_usage
232//usage: "[-cft] [FILE]..."
233//usage:#define gunzip_full_usage "\n\n"
234//usage: "Decompress FILEs (or stdin)\n"
235//usage: "\nOptions:"
236//usage: "\n -c Write to stdout"
237//usage: "\n -f Force"
238//usage: "\n -t Test file integrity"
239//usage:
240//usage:#define gunzip_example_usage
241//usage: "$ ls -la /tmp/BusyBox*\n"
242//usage: "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n"
243//usage: "$ gunzip /tmp/BusyBox-0.43.tar.gz\n"
244//usage: "$ ls -la /tmp/BusyBox*\n"
245//usage: "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
246//usage:
247//usage:#define zcat_trivial_usage
248//usage: "FILE"
249//usage:#define zcat_full_usage "\n\n"
250//usage: "Decompress to stdout"
251
221#if ENABLE_GUNZIP 252#if ENABLE_GUNZIP
222static 253static
223char* FAST_FUNC make_new_name_gunzip(char *filename, const char *expected_ext UNUSED_PARAM) 254char* FAST_FUNC make_new_name_gunzip(char *filename, const char *expected_ext UNUSED_PARAM)
@@ -344,6 +375,51 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
344 * 375 *
345 * Licensed under GPLv2, see file LICENSE in this source tree. 376 * Licensed under GPLv2, see file LICENSE in this source tree.
346 */ 377 */
378
379//usage:#define unlzma_trivial_usage
380//usage: "[-cf] [FILE]..."
381//usage:#define unlzma_full_usage "\n\n"
382//usage: "Decompress FILE (or stdin)\n"
383//usage: "\nOptions:"
384//usage: "\n -c Write to stdout"
385//usage: "\n -f Force"
386//usage:
387//usage:#define lzma_trivial_usage
388//usage: "-d [-cf] [FILE]..."
389//usage:#define lzma_full_usage "\n\n"
390//usage: "Decompress FILE (or stdin)\n"
391//usage: "\nOptions:"
392//usage: "\n -d Decompress"
393//usage: "\n -c Write to stdout"
394//usage: "\n -f Force"
395//usage:
396//usage:#define lzcat_trivial_usage
397//usage: "FILE"
398//usage:#define lzcat_full_usage "\n\n"
399//usage: "Decompress to stdout"
400//usage:
401//usage:#define unxz_trivial_usage
402//usage: "[-cf] [FILE]..."
403//usage:#define unxz_full_usage "\n\n"
404//usage: "Decompress FILE (or stdin)\n"
405//usage: "\nOptions:"
406//usage: "\n -c Write to stdout"
407//usage: "\n -f Force"
408//usage:
409//usage:#define xz_trivial_usage
410//usage: "-d [-cf] [FILE]..."
411//usage:#define xz_full_usage "\n\n"
412//usage: "Decompress FILE (or stdin)\n"
413//usage: "\nOptions:"
414//usage: "\n -d Decompress"
415//usage: "\n -c Write to stdout"
416//usage: "\n -f Force"
417//usage:
418//usage:#define xzcat_trivial_usage
419//usage: "FILE"
420//usage:#define xzcat_full_usage "\n\n"
421//usage: "Decompress to stdout"
422
347#if ENABLE_UNLZMA 423#if ENABLE_UNLZMA
348static 424static
349IF_DESKTOP(long long) int FAST_FUNC unpack_unlzma(unpack_info_t *info UNUSED_PARAM) 425IF_DESKTOP(long long) int FAST_FUNC unpack_unlzma(unpack_info_t *info UNUSED_PARAM)