aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-10-05 03:48:57 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-10-05 03:48:57 +0000
commit24e2833cdfcba3505bbde9b56906bbcbb67aa2be (patch)
tree9555ce149062ec16167d77aa6a5d7a55850c511d /include
parent2e772edacf70e9ff45a00a34af4c94e04d490fc2 (diff)
downloadbusybox-24e2833cdfcba3505bbde9b56906bbcbb67aa2be.tar.gz
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.h3
-rw-r--r--include/usage.h6
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 @@
#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
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 @@
"$ 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 \