diff options
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 { | |||
65 | }; | 65 | }; |
66 | typedef struct ArInfo ArInfo; | 66 | typedef struct ArInfo ArInfo; |
67 | 67 | ||
68 | static const char ar_usage[] = "ar [optxvV] archive [filenames] \n" | ||
69 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
70 | "\nExtract or list files from an ar archive.\n\n" | ||
71 | "Options:\n" | ||
72 | "\to\t\tpreserve original dates\n" | ||
73 | "\tp\t\textract to stdout\n" | ||
74 | "\tt\t\tlist\n" | ||
75 | "\tx\t\textract\n" | ||
76 | "\tv\t\tverbosely list files processed\n" | ||
77 | #endif | ||
78 | ; | ||
79 | |||
80 | /* | 68 | /* |
81 | * Display details of a file, verbosly if funct=2 | 69 | * Display details of a file, verbosly if funct=2 |
82 | */ | 70 | */ |
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 @@ | |||
30 | #include "internal.h" | 30 | #include "internal.h" |
31 | #include <getopt.h> | 31 | #include <getopt.h> |
32 | 32 | ||
33 | static const char gunzip_usage[] = | 33 | /* These defines are very important for BusyBox. Without these, |
34 | "gunzip [OPTION]... FILE\n" | ||
35 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
36 | "\nUncompress FILE (or standard input if FILE is '-').\n\n" | ||
37 | "Options:\n" | ||
38 | |||
39 | "\t-c\tWrite output to standard output\n" | ||
40 | "\t-t\tTest compressed file integrity\n" | ||
41 | #endif | ||
42 | ; | ||
43 | |||
44 | |||
45 | /* These defines are very important for BusyBox. Without these, | ||
46 | * huge chunks of ram are pre-allocated making the BusyBox bss | 34 | * huge chunks of ram are pre-allocated making the BusyBox bss |
47 | * size Freaking Huge(tm), which is a bad thing.*/ | 35 | * size Freaking Huge(tm), which is a bad thing.*/ |
48 | #define SMALL_MEM | 36 | #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 @@ | |||
40 | #define SMALL_MEM | 40 | #define SMALL_MEM |
41 | #define DYN_ALLOC | 41 | #define DYN_ALLOC |
42 | 42 | ||
43 | |||
44 | static const char gzip_usage[] = | ||
45 | "gzip [OPTION]... FILE\n" | ||
46 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
47 | "\nCompress FILE with maximum compression.\n" | ||
48 | "When FILE is '-', reads standard input. Implies -c.\n\n" | ||
49 | |||
50 | "Options:\n" | ||
51 | "\t-c\tWrite output to standard output instead of FILE.gz\n" | ||
52 | #endif | ||
53 | ; | ||
54 | |||
55 | |||
56 | /* I don't like nested includes, but the string and io functions are used | 43 | /* I don't like nested includes, but the string and io functions are used |
57 | * too often | 44 | * too often |
58 | */ | 45 | */ |
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 @@ | |||
50 | #include <sys/types.h> | 50 | #include <sys/types.h> |
51 | #include <sys/sysmacros.h> | 51 | #include <sys/sysmacros.h> |
52 | 52 | ||
53 | |||
54 | static const char tar_usage[] = | ||
55 | #ifdef BB_FEATURE_TAR_CREATE | ||
56 | "tar -[cxtvO] " | ||
57 | #else | ||
58 | "tar -[xtvO] " | ||
59 | #endif | ||
60 | #if defined BB_FEATURE_TAR_EXCLUDE | ||
61 | "[--exclude File] " | ||
62 | #endif | ||
63 | "[-f tarFile] [FILE] ...\n" | ||
64 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
65 | "\nCreate, extract, or list files from a tar file. Note that\n" | ||
66 | "this version of tar treats hard links as separate files.\n\n" | ||
67 | "Main operation mode:\n" | ||
68 | #ifdef BB_FEATURE_TAR_CREATE | ||
69 | "\tc\t\tcreate\n" | ||
70 | #endif | ||
71 | "\tx\t\textract\n" | ||
72 | "\tt\t\tlist\n" | ||
73 | "\nFile selection:\n" | ||
74 | "\tf\t\tname of tarfile or \"-\" for stdin\n" | ||
75 | "\tO\t\textract to stdout\n" | ||
76 | #if defined BB_FEATURE_TAR_EXCLUDE | ||
77 | "\t--exclude\tfile to exclude\n" | ||
78 | #endif | ||
79 | "\nInformative output:\n" | ||
80 | "\tv\t\tverbosely list files processed\n" | ||
81 | #endif | ||
82 | ; | ||
83 | |||
84 | /* Tar file constants */ | 53 | /* Tar file constants */ |
85 | #ifndef MAJOR | 54 | #ifndef MAJOR |
86 | #define MAJOR(dev) (((dev)>>8)&0xff) | 55 | #define MAJOR(dev) (((dev)>>8)&0xff) |