From 24e2833cdfcba3505bbde9b56906bbcbb67aa2be Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 5 Oct 2001 03:48:57 +0000 Subject: 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)) --- include/applets.h | 3 +++ include/usage.h | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index ab8727b71..461c878df 100644 --- a/include/applets.h +++ b/include/applets.h @@ -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 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 @@ "$ 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 \ -- cgit v1.2.3