diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-05 03:48:57 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-05 03:48:57 +0000 |
| commit | 24e2833cdfcba3505bbde9b56906bbcbb67aa2be (patch) | |
| tree | 9555ce149062ec16167d77aa6a5d7a55850c511d /include | |
| parent | 2e772edacf70e9ff45a00a34af4c94e04d490fc2 (diff) | |
| download | busybox-w32-24e2833cdfcba3505bbde9b56906bbcbb67aa2be.tar.gz busybox-w32-24e2833cdfcba3505bbde9b56906bbcbb67aa2be.tar.bz2 busybox-w32-24e2833cdfcba3505bbde9b56906bbcbb67aa2be.zip | |
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))
Diffstat (limited to 'include')
| -rw-r--r-- | include/applets.h | 3 | ||||
| -rw-r--r-- | include/usage.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index ab8727b71..461c878df 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -64,6 +64,9 @@ | |||
| 64 | #ifdef BB_BASENAME | 64 | #ifdef BB_BASENAME |
| 65 | APPLET(basename, basename_main, _BB_DIR_USR_BIN) | 65 | APPLET(basename, basename_main, _BB_DIR_USR_BIN) |
| 66 | #endif | 66 | #endif |
| 67 | #ifdef BB_BUNZIP2 | ||
| 68 | APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN) | ||
| 69 | #endif | ||
| 67 | APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN) | 70 | APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN) |
| 68 | #ifdef BB_CAT | 71 | #ifdef BB_CAT |
| 69 | APPLET(cat, cat_main, _BB_DIR_BIN) | 72 | APPLET(cat, cat_main, _BB_DIR_BIN) |
diff --git a/include/usage.h b/include/usage.h index f504ac1b8..0b095a4da 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -51,6 +51,12 @@ | |||
| 51 | "$ basename /foo/bar.txt .txt\n" \ | 51 | "$ basename /foo/bar.txt .txt\n" \ |
| 52 | "bar" | 52 | "bar" |
| 53 | 53 | ||
| 54 | #define bunzip2_trivial_usage \ | ||
| 55 | "FILE" | ||
| 56 | #define bunzip2_full_usage \ | ||
| 57 | "Uncompress FILE to current directory, stripping its .bz2 extension.\n"\ | ||
| 58 | " -k is assumed" | ||
| 59 | |||
| 54 | #define cat_trivial_usage \ | 60 | #define cat_trivial_usage \ |
| 55 | "[FILE]..." | 61 | "[FILE]..." |
| 56 | #define cat_full_usage \ | 62 | #define cat_full_usage \ |
