1 /* vi: set sw=4 ts=4: */
3 * Copyright (C) 2009 Denys Vlasenko.
5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
12 /* Just #include "autoconf.h" doesn't work for builds in separate
16 #define SKIP_applet_main
17 #define ALIGN1 /* nothing, just to placate applet_tables.h */
18 #define ALIGN2 /* nothing, just to placate applet_tables.h */
19 #include "applet_tables.h"
21 /* Since we can't use platform.h, have to do this again by hand: */
24 # define USE_FOR_NOMMU(...) __VA_ARGS__
25 # define USE_FOR_MMU(...)
28 # define USE_FOR_NOMMU(...)
29 # define USE_FOR_MMU(...) __VA_ARGS__
32 static const char usage_messages[] = ""
47 len2 = strlen(names) + 2;
48 if (col >= 76 - len2) {
64 printf("=head1 COMMAND DESCRIPTIONS\n\n");
65 printf("=over 4\n\n");
68 usage = usage_messages;
70 if (*names >= 'a' && *names <= 'z'
71 && *usage != NOUSAGE_STR[0]
73 printf("=item B<%s>\n\n", names);
75 printf("%s %s\n\n", names, usage);
77 printf("%s\n\n", names);
79 names += strlen(names) + 1;
80 usage += strlen(usage) + 1;
85 /* TODO: we used to make options bold with B<> and output an example too:
91 Concatenate FILE(s) and print them to stdout
94 -u Use unbuffered i/o (ignored)