diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-16 20:57:15 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-16 20:57:15 +0000 |
commit | bf181b9338152759fd56c8009e9a962a84808e7c (patch) | |
tree | e8c416c791c690f661c513340662e4e98ff3464a /archival | |
parent | 3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff) |
Extract usage information into a separate file.
Diffstat (limited to 'archival')
-rw-r--r-- | archival/ar.c | 12 | ||||
-rw-r--r-- | archival/gunzip.c | 14 | ||||
-rw-r--r-- | archival/gzip.c | 13 | ||||
-rw-r--r-- | archival/tar.c | 31 |
4 files changed, 1 insertions, 69 deletions
diff --git a/archival/ar.c b/archival/ar.c index a43cc1dff..d8c8d465b 100644 --- a/archival/ar.c +++ b/archival/ar.c @@ -65,18 +65,6 @@ struct ArInfo { }; typedef struct ArInfo ArInfo; -static const char ar_usage[] = "ar [optxvV] archive [filenames] \n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nExtract or list files from an ar archive.\n\n" - "Options:\n" - "\to\t\tpreserve original dates\n" - "\tp\t\textract to stdout\n" - "\tt\t\tlist\n" - "\tx\t\textract\n" - "\tv\t\tverbosely list files processed\n" -#endif - ; - /* * Display details of a file, verbosly if funct=2 */ diff --git a/archival/gunzip.c b/archival/gunzip.c index de68bd19b..b29bdf7c1 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c @@ -30,19 +30,7 @@ #include "internal.h" #include <getopt.h> -static const char gunzip_usage[] = - "gunzip [OPTION]... FILE\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nUncompress FILE (or standard input if FILE is '-').\n\n" - "Options:\n" - - "\t-c\tWrite output to standard output\n" - "\t-t\tTest compressed file integrity\n" -#endif - ; - - - /* These defines are very important for BusyBox. Without these, +/* These defines are very important for BusyBox. Without these, * huge chunks of ram are pre-allocated making the BusyBox bss * size Freaking Huge(tm), which is a bad thing.*/ #define SMALL_MEM diff --git a/archival/gzip.c b/archival/gzip.c index 8bc67d9c6..98ce259ca 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -40,19 +40,6 @@ #define SMALL_MEM #define DYN_ALLOC - -static const char gzip_usage[] = - "gzip [OPTION]... FILE\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nCompress FILE with maximum compression.\n" - "When FILE is '-', reads standard input. Implies -c.\n\n" - - "Options:\n" - "\t-c\tWrite output to standard output instead of FILE.gz\n" -#endif - ; - - /* I don't like nested includes, but the string and io functions are used * too often */ diff --git a/archival/tar.c b/archival/tar.c index 353694f33..6f18dc43f 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -50,37 +50,6 @@ #include <sys/types.h> #include <sys/sysmacros.h> - -static const char tar_usage[] = -#ifdef BB_FEATURE_TAR_CREATE - "tar -[cxtvO] " -#else - "tar -[xtvO] " -#endif -#if defined BB_FEATURE_TAR_EXCLUDE - "[--exclude File] " -#endif - "[-f tarFile] [FILE] ...\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nCreate, extract, or list files from a tar file. Note that\n" - "this version of tar treats hard links as separate files.\n\n" - "Main operation mode:\n" -#ifdef BB_FEATURE_TAR_CREATE - "\tc\t\tcreate\n" -#endif - "\tx\t\textract\n" - "\tt\t\tlist\n" - "\nFile selection:\n" - "\tf\t\tname of tarfile or \"-\" for stdin\n" - "\tO\t\textract to stdout\n" -#if defined BB_FEATURE_TAR_EXCLUDE - "\t--exclude\tfile to exclude\n" -#endif - "\nInformative output:\n" - "\tv\t\tverbosely list files processed\n" -#endif - ; - /* Tar file constants */ #ifndef MAJOR #define MAJOR(dev) (((dev)>>8)&0xff) |