diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-04-11 03:29:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-11 03:29:49 +0200 |
commit | 5bc8c005a8e15c43285bc595a8d404de67a482ac (patch) | |
tree | 98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /printutils | |
parent | 73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff) | |
download | busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2 busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip |
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'printutils')
-rw-r--r-- | printutils/lpd.c | 11 | ||||
-rw-r--r-- | printutils/lpr.c | 21 |
2 files changed, 32 insertions, 0 deletions
diff --git a/printutils/lpd.c b/printutils/lpd.c index 157cbe8ae..115552e0b 100644 --- a/printutils/lpd.c +++ b/printutils/lpd.c | |||
@@ -70,6 +70,17 @@ | |||
70 | * mv -f ./"$DATAFILE" save/ | 70 | * mv -f ./"$DATAFILE" save/ |
71 | */ | 71 | */ |
72 | 72 | ||
73 | //usage:#define lpd_trivial_usage | ||
74 | //usage: "SPOOLDIR [HELPER [ARGS]]" | ||
75 | //usage:#define lpd_full_usage "\n\n" | ||
76 | //usage: "SPOOLDIR must contain (symlinks to) device nodes or directories" | ||
77 | //usage: "\nwith names matching print queue names. In the first case, jobs are" | ||
78 | //usage: "\nsent directly to the device. Otherwise each job is stored in queue" | ||
79 | //usage: "\ndirectory and HELPER program is called. Name of file to print" | ||
80 | //usage: "\nis passed in $DATAFILE variable." | ||
81 | //usage: "\nExample:" | ||
82 | //usage: "\n tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print" | ||
83 | |||
73 | #include "libbb.h" | 84 | #include "libbb.h" |
74 | 85 | ||
75 | // strip argument of bad chars | 86 | // strip argument of bad chars |
diff --git a/printutils/lpr.c b/printutils/lpr.c index 284917926..f8ee9a11b 100644 --- a/printutils/lpr.c +++ b/printutils/lpr.c | |||
@@ -11,6 +11,27 @@ | |||
11 | * | 11 | * |
12 | * See RFC 1179 for protocol description. | 12 | * See RFC 1179 for protocol description. |
13 | */ | 13 | */ |
14 | |||
15 | //usage:#define lpr_trivial_usage | ||
16 | //usage: "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..." | ||
17 | /* -C CLASS exists too, not shown. | ||
18 | * CLASS is supposed to be printed on banner page, if one is requested */ | ||
19 | //usage:#define lpr_full_usage "\n\n" | ||
20 | //usage: "Options:" | ||
21 | //usage: "\n -P lp service to connect to (else uses $PRINTER)" | ||
22 | //usage: "\n -m Send mail on completion" | ||
23 | //usage: "\n -h Print banner page too" | ||
24 | //usage: "\n -V Verbose" | ||
25 | //usage: | ||
26 | //usage:#define lpq_trivial_usage | ||
27 | //usage: "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]" | ||
28 | //usage:#define lpq_full_usage "\n\n" | ||
29 | //usage: "Options:" | ||
30 | //usage: "\n -P lp service to connect to (else uses $PRINTER)" | ||
31 | //usage: "\n -d Delete jobs" | ||
32 | //usage: "\n -f Force any waiting job to be printed" | ||
33 | //usage: "\n -s Short display" | ||
34 | |||
14 | #include "libbb.h" | 35 | #include "libbb.h" |
15 | 36 | ||
16 | /* | 37 | /* |