mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
Initial support for for bunzip2....
This code could be improvemed by 1) supporting more options, 2) Creating a shared crc table with gunzip, or perhaps generated on the fly. 3) Removing any remaining unneccessary code (e.g. if (noisy))
This commit is contained in:
parent
2e772edacf
commit
24e2833cdf
1
Config.h
1
Config.h
@ -13,6 +13,7 @@
|
||||
//#define BB_AR
|
||||
//#define BB_ASH
|
||||
#define BB_BASENAME
|
||||
//#define BB_BUNZIP2
|
||||
#define BB_CAT
|
||||
#define BB_CHGRP
|
||||
#define BB_CHMOD
|
||||
|
@ -63,6 +63,9 @@
|
||||
#endif
|
||||
#ifdef BB_BASENAME
|
||||
APPLET(basename, basename_main, _BB_DIR_USR_BIN)
|
||||
#endif
|
||||
#ifdef BB_BUNZIP2
|
||||
APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN)
|
||||
#endif
|
||||
APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
|
||||
#ifdef BB_CAT
|
||||
|
@ -51,6 +51,12 @@
|
||||
"$ basename /foo/bar.txt .txt\n" \
|
||||
"bar"
|
||||
|
||||
#define bunzip2_trivial_usage \
|
||||
"FILE"
|
||||
#define bunzip2_full_usage \
|
||||
"Uncompress FILE to current directory, stripping its .bz2 extension.\n"\
|
||||
" -k is assumed"
|
||||
|
||||
#define cat_trivial_usage \
|
||||
"[FILE]..."
|
||||
#define cat_full_usage \
|
||||
|
2340
archival/bunzip2.c
Normal file
2340
archival/bunzip2.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -63,6 +63,9 @@
|
||||
#endif
|
||||
#ifdef BB_BASENAME
|
||||
APPLET(basename, basename_main, _BB_DIR_USR_BIN)
|
||||
#endif
|
||||
#ifdef BB_BUNZIP2
|
||||
APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN)
|
||||
#endif
|
||||
APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
|
||||
#ifdef BB_CAT
|
||||
|
@ -51,6 +51,12 @@
|
||||
"$ basename /foo/bar.txt .txt\n" \
|
||||
"bar"
|
||||
|
||||
#define bunzip2_trivial_usage \
|
||||
"FILE"
|
||||
#define bunzip2_full_usage \
|
||||
"Uncompress FILE to current directory, stripping its .bz2 extension.\n"\
|
||||
" -k is assumed"
|
||||
|
||||
#define cat_trivial_usage \
|
||||
"[FILE]..."
|
||||
#define cat_full_usage \
|
||||
|
6
usage.h
6
usage.h
@ -51,6 +51,12 @@
|
||||
"$ basename /foo/bar.txt .txt\n" \
|
||||
"bar"
|
||||
|
||||
#define bunzip2_trivial_usage \
|
||||
"FILE"
|
||||
#define bunzip2_full_usage \
|
||||
"Uncompress FILE to current directory, stripping its .bz2 extension.\n"\
|
||||
" -k is assumed"
|
||||
|
||||
#define cat_trivial_usage \
|
||||
"[FILE]..."
|
||||
#define cat_full_usage \
|
||||
|
Loading…
Reference in New Issue
Block a user