aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-03-27 22:40:30 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-27 22:40:30 +0200
commit1f4447b2d439e6f11d95746bb5f611c353305859 (patch)
tree0f47681009046a12ee050b989b838c68493a6a2e
parent700fbc308dd1f2e063180786cddfcc4abd6c10c0 (diff)
downloadbusybox-w32-1f4447b2d439e6f11d95746bb5f611c353305859.tar.gz
busybox-w32-1f4447b2d439e6f11d95746bb5f611c353305859.tar.bz2
busybox-w32-1f4447b2d439e6f11d95746bb5f611c353305859.zip
move help text from include/usage.src.h to archival/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/ar.c11
-rw-r--r--archival/bbunzip.c76
-rw-r--r--archival/bzip2.c10
-rw-r--r--archival/dpkg.c28
-rw-r--r--archival/dpkg_deb.c15
-rw-r--r--archival/gzip.c16
-rw-r--r--archival/lzop.c27
-rw-r--r--archival/rpm.c13
-rw-r--r--archival/rpm2cpio.c6
-rw-r--r--archival/unzip.c13
-rw-r--r--include/usage.src.h210
11 files changed, 215 insertions, 210 deletions
diff --git a/archival/ar.c b/archival/ar.c
index a2e3306ac..f5a379fb8 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -17,6 +17,17 @@
17 * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html 17 * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html
18 */ 18 */
19 19
20//usage:#define ar_trivial_usage
21//usage: "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
22//usage:#define ar_full_usage "\n\n"
23//usage: "Extract or list FILES from an ar archive\n"
24//usage: "\nOptions:"
25//usage: "\n -o Preserve original dates"
26//usage: "\n -p Extract to stdout"
27//usage: "\n -t List"
28//usage: "\n -x Extract"
29//usage: "\n -v Verbose"
30
20#include "libbb.h" 31#include "libbb.h"
21#include "archive.h" 32#include "archive.h"
22#include "ar.h" 33#include "ar.h"
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index c4cc5d821..734c9b269 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -167,6 +167,15 @@ char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext)
167 * 167 *
168 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 168 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
169 */ 169 */
170
171//usage:#define uncompress_trivial_usage
172//usage: "[-cf] [FILE]..."
173//usage:#define uncompress_full_usage "\n\n"
174//usage: "Decompress .Z file[s]\n"
175//usage: "\nOptions:"
176//usage: "\n -c Write to stdout"
177//usage: "\n -f Overwrite"
178
170#if ENABLE_UNCOMPRESS 179#if ENABLE_UNCOMPRESS
171static 180static
172IF_DESKTOP(long long) int FAST_FUNC unpack_uncompress(unpack_info_t *info UNUSED_PARAM) 181IF_DESKTOP(long long) int FAST_FUNC unpack_uncompress(unpack_info_t *info UNUSED_PARAM)
@@ -218,6 +227,28 @@ int uncompress_main(int argc UNUSED_PARAM, char **argv)
218 * See the license_msg below and the file COPYING for the software license. 227 * See the license_msg below and the file COPYING for the software license.
219 * See the file algorithm.doc for the compression algorithms and file formats. 228 * See the file algorithm.doc for the compression algorithms and file formats.
220 */ 229 */
230
231//usage:#define gunzip_trivial_usage
232//usage: "[-cft] [FILE]..."
233//usage:#define gunzip_full_usage "\n\n"
234//usage: "Decompress FILEs (or stdin)\n"
235//usage: "\nOptions:"
236//usage: "\n -c Write to stdout"
237//usage: "\n -f Force"
238//usage: "\n -t Test file integrity"
239//usage:
240//usage:#define gunzip_example_usage
241//usage: "$ ls -la /tmp/BusyBox*\n"
242//usage: "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n"
243//usage: "$ gunzip /tmp/BusyBox-0.43.tar.gz\n"
244//usage: "$ ls -la /tmp/BusyBox*\n"
245//usage: "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
246//usage:
247//usage:#define zcat_trivial_usage
248//usage: "FILE"
249//usage:#define zcat_full_usage "\n\n"
250//usage: "Decompress to stdout"
251
221#if ENABLE_GUNZIP 252#if ENABLE_GUNZIP
222static 253static
223char* FAST_FUNC make_new_name_gunzip(char *filename, const char *expected_ext UNUSED_PARAM) 254char* FAST_FUNC make_new_name_gunzip(char *filename, const char *expected_ext UNUSED_PARAM)
@@ -344,6 +375,51 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
344 * 375 *
345 * Licensed under GPLv2, see file LICENSE in this source tree. 376 * Licensed under GPLv2, see file LICENSE in this source tree.
346 */ 377 */
378
379//usage:#define unlzma_trivial_usage
380//usage: "[-cf] [FILE]..."
381//usage:#define unlzma_full_usage "\n\n"
382//usage: "Decompress FILE (or stdin)\n"
383//usage: "\nOptions:"
384//usage: "\n -c Write to stdout"
385//usage: "\n -f Force"
386//usage:
387//usage:#define lzma_trivial_usage
388//usage: "-d [-cf] [FILE]..."
389//usage:#define lzma_full_usage "\n\n"
390//usage: "Decompress FILE (or stdin)\n"
391//usage: "\nOptions:"
392//usage: "\n -d Decompress"
393//usage: "\n -c Write to stdout"
394//usage: "\n -f Force"
395//usage:
396//usage:#define lzcat_trivial_usage
397//usage: "FILE"
398//usage:#define lzcat_full_usage "\n\n"
399//usage: "Decompress to stdout"
400//usage:
401//usage:#define unxz_trivial_usage
402//usage: "[-cf] [FILE]..."
403//usage:#define unxz_full_usage "\n\n"
404//usage: "Decompress FILE (or stdin)\n"
405//usage: "\nOptions:"
406//usage: "\n -c Write to stdout"
407//usage: "\n -f Force"
408//usage:
409//usage:#define xz_trivial_usage
410//usage: "-d [-cf] [FILE]..."
411//usage:#define xz_full_usage "\n\n"
412//usage: "Decompress FILE (or stdin)\n"
413//usage: "\nOptions:"
414//usage: "\n -d Decompress"
415//usage: "\n -c Write to stdout"
416//usage: "\n -f Force"
417//usage:
418//usage:#define xzcat_trivial_usage
419//usage: "FILE"
420//usage:#define xzcat_full_usage "\n\n"
421//usage: "Decompress to stdout"
422
347#if ENABLE_UNLZMA 423#if ENABLE_UNLZMA
348static 424static
349IF_DESKTOP(long long) int FAST_FUNC unpack_unlzma(unpack_info_t *info UNUSED_PARAM) 425IF_DESKTOP(long long) int FAST_FUNC unpack_unlzma(unpack_info_t *info UNUSED_PARAM)
diff --git a/archival/bzip2.c b/archival/bzip2.c
index ab08ffc1a..cfaf5fe20 100644
--- a/archival/bzip2.c
+++ b/archival/bzip2.c
@@ -7,6 +7,16 @@
7 * about bzip2 library code. 7 * about bzip2 library code.
8 */ 8 */
9 9
10//usage:#define bzip2_trivial_usage
11//usage: "[OPTIONS] [FILE]..."
12//usage:#define bzip2_full_usage "\n\n"
13//usage: "Compress FILEs (or stdin) with bzip2 algorithm\n"
14//usage: "\nOptions:"
15//usage: "\n -1..9 Compression level"
16//usage: "\n -d Decompress"
17//usage: "\n -c Write to stdout"
18//usage: "\n -f Force"
19
10#include "libbb.h" 20#include "libbb.h"
11#include "archive.h" 21#include "archive.h"
12 22
diff --git a/archival/dpkg.c b/archival/dpkg.c
index c37ae3349..f8e349d09 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -28,6 +28,34 @@
28 * 28 *
29 */ 29 */
30 30
31//usage:#define dpkg_trivial_usage
32//usage: "[-ilCPru] [-F OPT] PACKAGE"
33//usage:#define dpkg_full_usage "\n\n"
34//usage: "Install, remove and manage Debian packages\n"
35//usage: "\nOptions:"
36//usage: IF_LONG_OPTS(
37//usage: "\n -i,--install Install the package"
38//usage: "\n -l,--list List of installed packages"
39//usage: "\n --configure Configure an unpackaged package"
40//usage: "\n -P,--purge Purge all files of a package"
41//usage: "\n -r,--remove Remove all but the configuration files for a package"
42//usage: "\n --unpack Unpack a package, but don't configure it"
43//usage: "\n --force-depends Ignore dependency problems"
44//usage: "\n --force-confnew Overwrite existing config files when installing"
45//usage: "\n --force-confold Keep old config files when installing"
46//usage: )
47//usage: IF_NOT_LONG_OPTS(
48//usage: "\n -i Install the package"
49//usage: "\n -l List of installed packages"
50//usage: "\n -C Configure an unpackaged package"
51//usage: "\n -P Purge all files of a package"
52//usage: "\n -r Remove all but the configuration files for a package"
53//usage: "\n -u Unpack a package, but don't configure it"
54//usage: "\n -F depends Ignore dependency problems"
55//usage: "\n -F confnew Overwrite existing config files when installing"
56//usage: "\n -F confold Keep old config files when installing"
57//usage: )
58
31#include "libbb.h" 59#include "libbb.h"
32#include <fnmatch.h> 60#include <fnmatch.h>
33#include "archive.h" 61#include "archive.h"
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index aee7b4cf5..9e1e811ee 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -4,6 +4,21 @@
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7
8//usage:#define dpkg_deb_trivial_usage
9//usage: "[-cefxX] FILE [argument"
10//usage:#define dpkg_deb_full_usage "\n\n"
11//usage: "Perform actions on Debian packages (.debs)\n"
12//usage: "\nOptions:"
13//usage: "\n -c List contents of filesystem tree"
14//usage: "\n -e Extract control files to [argument] directory"
15//usage: "\n -f Display control field name starting with [argument]"
16//usage: "\n -x Extract packages filesystem tree to directory"
17//usage: "\n -X Verbose extract"
18//usage:
19//usage:#define dpkg_deb_example_usage
20//usage: "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
21
7#include "libbb.h" 22#include "libbb.h"
8#include "archive.h" 23#include "archive.h"
9 24
diff --git a/archival/gzip.c b/archival/gzip.c
index 38c5ae7fd..7686e1adb 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -39,6 +39,22 @@ gzip: bogus: No such file or directory
39aa: 85.1% -- replaced with aa.gz 39aa: 85.1% -- replaced with aa.gz
40*/ 40*/
41 41
42//usage:#define gzip_trivial_usage
43//usage: "[-cfd] [FILE]..."
44//usage:#define gzip_full_usage "\n\n"
45//usage: "Compress FILEs (or stdin)\n"
46//usage: "\nOptions:"
47//usage: "\n -d Decompress"
48//usage: "\n -c Write to stdout"
49//usage: "\n -f Force"
50//usage:
51//usage:#define gzip_example_usage
52//usage: "$ ls -la /tmp/busybox*\n"
53//usage: "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n"
54//usage: "$ gzip /tmp/busybox.tar\n"
55//usage: "$ ls -la /tmp/busybox*\n"
56//usage: "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
57
42#include "libbb.h" 58#include "libbb.h"
43#include "archive.h" 59#include "archive.h"
44 60
diff --git a/archival/lzop.c b/archival/lzop.c
index 62455c313..f4419910f 100644
--- a/archival/lzop.c
+++ b/archival/lzop.c
@@ -25,6 +25,33 @@
25 "Minimalized" for busybox by Alain Knaff 25 "Minimalized" for busybox by Alain Knaff
26*/ 26*/
27 27
28//usage:#define lzop_trivial_usage
29//usage: "[-cfvd123456789CF] [FILE]..."
30//usage:#define lzop_full_usage "\n\n"
31//usage: "Options:"
32//usage: "\n -1..9 Compression level"
33//usage: "\n -d Decompress"
34//usage: "\n -c Write to stdout"
35//usage: "\n -f Force"
36//usage: "\n -v Verbose"
37//usage: "\n -F Don't store or verify checksum"
38//usage: "\n -C Also write checksum of compressed block"
39//usage:
40//usage:#define lzopcat_trivial_usage
41//usage: "[-vCF] [FILE]..."
42//usage:#define lzopcat_full_usage "\n\n"
43//usage: " -v Verbose"
44//usage: "\n -F Don't store or verify checksum"
45//usage:
46//usage:#define unlzop_trivial_usage
47//usage: "[-cfvCF] [FILE]..."
48//usage:#define unlzop_full_usage "\n\n"
49//usage: "Options:"
50//usage: "\n -c Write to stdout"
51//usage: "\n -f Force"
52//usage: "\n -v Verbose"
53//usage: "\n -F Don't store or verify checksum"
54
28#include "libbb.h" 55#include "libbb.h"
29#include "archive.h" 56#include "archive.h"
30#include "liblzo_interface.h" 57#include "liblzo_interface.h"
diff --git a/archival/rpm.c b/archival/rpm.c
index 380226f9b..98a45d9cc 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -7,6 +7,19 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9 9
10//usage:#define rpm_trivial_usage
11//usage: "-i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm"
12//usage:#define rpm_full_usage "\n\n"
13//usage: "Manipulate RPM packages\n"
14//usage: "\nCommands:"
15//usage: "\n -i Install package"
16//usage: "\n -qp Query package"
17//usage: "\nOptions:"
18//usage: "\n -i Show information"
19//usage: "\n -l List contents"
20//usage: "\n -d List documents"
21//usage: "\n -c List config files"
22
10#include "libbb.h" 23#include "libbb.h"
11#include "archive.h" 24#include "archive.h"
12#include "rpm.h" 25#include "rpm.h"
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index ce8cd2c2c..ff4a0d1b0 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -6,6 +6,12 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9
10//usage:#define rpm2cpio_trivial_usage
11//usage: "package.rpm"
12//usage:#define rpm2cpio_full_usage "\n\n"
13//usage: "Output a cpio archive of the rpm file"
14
9#include "libbb.h" 15#include "libbb.h"
10#include "archive.h" 16#include "archive.h"
11#include "rpm.h" 17#include "rpm.h"
diff --git a/archival/unzip.c b/archival/unzip.c
index 5d62c08cb..52b0a6414 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -19,6 +19,19 @@
19 * Zip64 + other methods 19 * Zip64 + other methods
20 */ 20 */
21 21
22//usage:#define unzip_trivial_usage
23//usage: "[-opts[modifiers]] FILE[.zip] [LIST] [-x XLIST] [-d DIR]"
24//usage:#define unzip_full_usage "\n\n"
25//usage: "Extract files from ZIP archives\n"
26//usage: "\nOptions:"
27//usage: "\n -l List archive contents (with -q for short form)"
28//usage: "\n -n Never overwrite files (default)"
29//usage: "\n -o Overwrite"
30//usage: "\n -p Send output to stdout"
31//usage: "\n -q Quiet"
32//usage: "\n -x XLST Exclude these files"
33//usage: "\n -d DIR Extract files into DIR"
34
22#include "libbb.h" 35#include "libbb.h"
23#include "archive.h" 36#include "archive.h"
24 37
diff --git a/include/usage.src.h b/include/usage.src.h
index d07b408a6..69b8da272 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -74,17 +74,6 @@ INSERT
74 "\n -t TICK Microseconds per tick, usually 10000" \ 74 "\n -t TICK Microseconds per tick, usually 10000" \
75 "\n -p TCONST" \ 75 "\n -p TCONST" \
76 76
77#define ar_trivial_usage \
78 "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES"
79#define ar_full_usage "\n\n" \
80 "Extract or list FILES from an ar archive\n" \
81 "\nOptions:" \
82 "\n -o Preserve original dates" \
83 "\n -p Extract to stdout" \
84 "\n -t List" \
85 "\n -x Extract" \
86 "\n -v Verbose" \
87
88#define arp_trivial_usage \ 77#define arp_trivial_usage \
89 "\n[-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME]" \ 78 "\n[-vn] [-H HWTYPE] [-i IF] -a [HOSTNAME]" \
90 "\n[-v] [-i IF] -d HOSTNAME [pub]" \ 79 "\n[-v] [-i IF] -d HOSTNAME [pub]" \
@@ -179,90 +168,9 @@ INSERT
179 "\n stp BRIDGE [1/yes/on|0/no/off] STP on/off" \ 168 "\n stp BRIDGE [1/yes/on|0/no/off] STP on/off" \
180 ) \ 169 ) \
181 170
182#define bzip2_trivial_usage \
183 "[OPTIONS] [FILE]..."
184#define bzip2_full_usage "\n\n" \
185 "Compress FILEs (or stdin) with bzip2 algorithm\n" \
186 "\nOptions:" \
187 "\n -1..9 Compression level" \
188 "\n -d Decompress" \
189 "\n -c Write to stdout" \
190 "\n -f Force" \
191
192#define busybox_notes_usage \ 171#define busybox_notes_usage \
193 "Hello world!\n" 172 "Hello world!\n"
194 173
195#define lzop_trivial_usage \
196 "[-cfvd123456789CF] [FILE]..."
197#define lzop_full_usage "\n\n" \
198 "Options:" \
199 "\n -1..9 Compression level" \
200 "\n -d Decompress" \
201 "\n -c Write to stdout" \
202 "\n -f Force" \
203 "\n -v Verbose" \
204 "\n -F Don't store or verify checksum" \
205 "\n -C Also write checksum of compressed block" \
206
207#define lzopcat_trivial_usage \
208 "[-vCF] [FILE]..."
209#define lzopcat_full_usage "\n\n" \
210 " -v Verbose" \
211 "\n -F Don't store or verify checksum" \
212
213#define unlzop_trivial_usage \
214 "[-cfvCF] [FILE]..."
215#define unlzop_full_usage "\n\n" \
216 "Options:" \
217 "\n -c Write to stdout" \
218 "\n -f Force" \
219 "\n -v Verbose" \
220 "\n -F Don't store or verify checksum" \
221
222#define unlzma_trivial_usage \
223 "[-cf] [FILE]..."
224#define unlzma_full_usage "\n\n" \
225 "Decompress FILE (or stdin)\n" \
226 "\nOptions:" \
227 "\n -c Write to stdout" \
228 "\n -f Force" \
229
230#define lzma_trivial_usage \
231 "-d [-cf] [FILE]..."
232#define lzma_full_usage "\n\n" \
233 "Decompress FILE (or stdin)\n" \
234 "\nOptions:" \
235 "\n -d Decompress" \
236 "\n -c Write to stdout" \
237 "\n -f Force" \
238
239#define lzcat_trivial_usage \
240 "FILE"
241#define lzcat_full_usage "\n\n" \
242 "Decompress to stdout"
243
244#define unxz_trivial_usage \
245 "[-cf] [FILE]..."
246#define unxz_full_usage "\n\n" \
247 "Decompress FILE (or stdin)\n" \
248 "\nOptions:" \
249 "\n -c Write to stdout" \
250 "\n -f Force" \
251
252#define xz_trivial_usage \
253 "-d [-cf] [FILE]..."
254#define xz_full_usage "\n\n" \
255 "Decompress FILE (or stdin)\n" \
256 "\nOptions:" \
257 "\n -d Decompress" \
258 "\n -c Write to stdout" \
259 "\n -f Force" \
260
261#define xzcat_trivial_usage \
262 "FILE"
263#define xzcat_full_usage "\n\n" \
264 "Decompress to stdout"
265
266#define cal_trivial_usage \ 174#define cal_trivial_usage \
267 "[-jy] [[MONTH] YEAR]" 175 "[-jy] [[MONTH] YEAR]"
268#define cal_full_usage "\n\n" \ 176#define cal_full_usage "\n\n" \
@@ -861,48 +769,6 @@ INSERT
861 "\n -u dos2unix" \ 769 "\n -u dos2unix" \
862 "\n -d unix2dos" \ 770 "\n -d unix2dos" \
863 771
864#define dpkg_trivial_usage \
865 "[-ilCPru] [-F OPT] PACKAGE"
866#define dpkg_full_usage "\n\n" \
867 "Install, remove and manage Debian packages\n" \
868 "\nOptions:" \
869 IF_LONG_OPTS( \
870 "\n -i,--install Install the package" \
871 "\n -l,--list List of installed packages" \
872 "\n --configure Configure an unpackaged package" \
873 "\n -P,--purge Purge all files of a package" \
874 "\n -r,--remove Remove all but the configuration files for a package" \
875 "\n --unpack Unpack a package, but don't configure it" \
876 "\n --force-depends Ignore dependency problems" \
877 "\n --force-confnew Overwrite existing config files when installing" \
878 "\n --force-confold Keep old config files when installing" \
879 ) \
880 IF_NOT_LONG_OPTS( \
881 "\n -i Install the package" \
882 "\n -l List of installed packages" \
883 "\n -C Configure an unpackaged package" \
884 "\n -P Purge all files of a package" \
885 "\n -r Remove all but the configuration files for a package" \
886 "\n -u Unpack a package, but don't configure it" \
887 "\n -F depends Ignore dependency problems" \
888 "\n -F confnew Overwrite existing config files when installing" \
889 "\n -F confold Keep old config files when installing" \
890 )
891
892#define dpkg_deb_trivial_usage \
893 "[-cefxX] FILE [argument]"
894#define dpkg_deb_full_usage "\n\n" \
895 "Perform actions on Debian packages (.debs)\n" \
896 "\nOptions:" \
897 "\n -c List contents of filesystem tree" \
898 "\n -e Extract control files to [argument] directory" \
899 "\n -f Display control field name starting with [argument]" \
900 "\n -x Extract packages filesystem tree to directory" \
901 "\n -X Verbose extract" \
902
903#define dpkg_deb_example_usage \
904 "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
905
906#define du_trivial_usage \ 772#define du_trivial_usage \
907 "[-aHLdclsx" IF_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..." 773 "[-aHLdclsx" IF_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."
908#define du_full_usage "\n\n" \ 774#define du_full_usage "\n\n" \
@@ -1377,38 +1243,6 @@ INSERT
1377#define getsebool_full_usage "\n\n" \ 1243#define getsebool_full_usage "\n\n" \
1378 " -a Show all selinux booleans" 1244 " -a Show all selinux booleans"
1379 1245
1380#define gunzip_trivial_usage \
1381 "[-cft] [FILE]..."
1382#define gunzip_full_usage "\n\n" \
1383 "Decompress FILEs (or stdin)\n" \
1384 "\nOptions:" \
1385 "\n -c Write to stdout" \
1386 "\n -f Force" \
1387 "\n -t Test file integrity" \
1388
1389#define gunzip_example_usage \
1390 "$ ls -la /tmp/BusyBox*\n" \
1391 "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \
1392 "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \
1393 "$ ls -la /tmp/BusyBox*\n" \
1394 "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"
1395
1396#define gzip_trivial_usage \
1397 "[-cfd] [FILE]..."
1398#define gzip_full_usage "\n\n" \
1399 "Compress FILEs (or stdin)\n" \
1400 "\nOptions:" \
1401 "\n -d Decompress" \
1402 "\n -c Write to stdout" \
1403 "\n -f Force" \
1404
1405#define gzip_example_usage \
1406 "$ ls -la /tmp/busybox*\n" \
1407 "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \
1408 "$ gzip /tmp/busybox.tar\n" \
1409 "$ ls -la /tmp/busybox*\n" \
1410 "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"
1411
1412#define hdparm_trivial_usage \ 1246#define hdparm_trivial_usage \
1413 "[OPTIONS] [DEVICE]" 1247 "[OPTIONS] [DEVICE]"
1414#define hdparm_full_usage "\n\n" \ 1248#define hdparm_full_usage "\n\n" \
@@ -2945,24 +2779,6 @@ INSERT
2945 "\n -e Display other/more information" \ 2779 "\n -e Display other/more information" \
2946 "\n -A inet" IF_FEATURE_IPV6("{6}") " Select address family" \ 2780 "\n -A inet" IF_FEATURE_IPV6("{6}") " Select address family" \
2947 2781
2948#define rpm_trivial_usage \
2949 "-i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm"
2950#define rpm_full_usage "\n\n" \
2951 "Manipulate RPM packages\n" \
2952 "\nCommands:" \
2953 "\n -i Install package" \
2954 "\n -qp Query package" \
2955 "\nOptions:" \
2956 "\n -i Show information" \
2957 "\n -l List contents" \
2958 "\n -d List documents" \
2959 "\n -c List config files" \
2960
2961#define rpm2cpio_trivial_usage \
2962 "package.rpm"
2963#define rpm2cpio_full_usage "\n\n" \
2964 "Output a cpio archive of the rpm file"
2965
2966#define rtcwake_trivial_usage \ 2782#define rtcwake_trivial_usage \
2967 "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]" 2783 "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]"
2968#define rtcwake_full_usage "\n\n" \ 2784#define rtcwake_full_usage "\n\n" \
@@ -3899,14 +3715,6 @@ INSERT
3899 "$ uname -a\n" \ 3715 "$ uname -a\n" \
3900 "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n" 3716 "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
3901 3717
3902#define uncompress_trivial_usage \
3903 "[-cf] [FILE]..."
3904#define uncompress_full_usage "\n\n" \
3905 "Decompress .Z file[s]\n" \
3906 "\nOptions:" \
3907 "\n -c Write to stdout" \
3908 "\n -f Overwrite" \
3909
3910#define unexpand_trivial_usage \ 3718#define unexpand_trivial_usage \
3911 "[-fa][-t N] [FILE]..." 3719 "[-fa][-t N] [FILE]..."
3912#define unexpand_full_usage "\n\n" \ 3720#define unexpand_full_usage "\n\n" \
@@ -3941,19 +3749,6 @@ INSERT
3941 "b\n" \ 3749 "b\n" \
3942 "c\n" 3750 "c\n"
3943 3751
3944#define unzip_trivial_usage \
3945 "[-opts[modifiers]] FILE[.zip] [LIST] [-x XLIST] [-d DIR]"
3946#define unzip_full_usage "\n\n" \
3947 "Extract files from ZIP archives\n" \
3948 "\nOptions:" \
3949 "\n -l List archive contents (with -q for short form)" \
3950 "\n -n Never overwrite files (default)" \
3951 "\n -o Overwrite" \
3952 "\n -p Send output to stdout" \
3953 "\n -q Quiet" \
3954 "\n -x XLST Exclude these files" \
3955 "\n -d DIR Extract files into DIR" \
3956
3957#define uptime_trivial_usage \ 3752#define uptime_trivial_usage \
3958 "" 3753 ""
3959#define uptime_full_usage "\n\n" \ 3754#define uptime_full_usage "\n\n" \
@@ -4087,11 +3882,6 @@ INSERT
4087#define whoami_full_usage "\n\n" \ 3882#define whoami_full_usage "\n\n" \
4088 "Print the user name associated with the current effective user id" 3883 "Print the user name associated with the current effective user id"
4089 3884
4090#define zcat_trivial_usage \
4091 "FILE"
4092#define zcat_full_usage "\n\n" \
4093 "Decompress to stdout"
4094
4095#define zcip_trivial_usage \ 3885#define zcip_trivial_usage \
4096 "[OPTIONS] IFACE SCRIPT" 3886 "[OPTIONS] IFACE SCRIPT"
4097#define zcip_full_usage "\n\n" \ 3887#define zcip_full_usage "\n\n" \