From fff11f1ab7ec7cc67087231361f3bde8ecff115f Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sun, 18 Nov 2001 14:20:25 +0000 Subject: bzcat and bunzip -c support from Thomas Lundquist --- include/applets.h | 3 +++ include/usage.h | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index ea196cb66..aa112c30b 100644 --- a/include/applets.h +++ b/include/applets.h @@ -68,6 +68,9 @@ APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN) #endif APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN) +#ifdef CONFIG_BUNZIP2 + APPLET(bzcat, bunzip2_main, _BB_DIR_USR_BIN) +#endif #ifdef CONFIG_CAT APPLET(cat, cat_main, _BB_DIR_BIN) #endif diff --git a/include/usage.h b/include/usage.h index 12d5e1ed5..df1c18ec7 100644 --- a/include/usage.h +++ b/include/usage.h @@ -52,11 +52,17 @@ "bar" #define bunzip2_trivial_usage \ - "FILE" + "[-c] FILE" #define bunzip2_full_usage \ "Uncompress FILE to current directory, stripping its .bz2 extension.\n"\ + " -c output to stdout\n"\ " -k is assumed" +#define bzcat_trivial_usage \ + "FILE" +#define bzcat_full_usage \ + "Uncompress to stdout." + #define cat_trivial_usage \ "[FILE]..." #define cat_full_usage \ -- cgit v1.2.3