aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-05 00:46:35 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-05 00:46:35 +0000
commit875a2f7f50dc4b30ea0aa78ed5e0168d087d7bb1 (patch)
tree918bd8faf7f950faa095f19fd2a05ad64b9d0461
parent90d665870131f12f0ebafae20021b90e106d0e40 (diff)
downloadbusybox-w32-875a2f7f50dc4b30ea0aa78ed5e0168d087d7bb1.tar.gz
busybox-w32-875a2f7f50dc4b30ea0aa78ed5e0168d087d7bb1.tar.bz2
busybox-w32-875a2f7f50dc4b30ea0aa78ed5e0168d087d7bb1.zip
usage.h: stop using ancient USAGE_xxx (we have USE_xx now)
git-svn-id: svn://busybox.net/trunk/busybox@16512 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--include/usage.h47
1 files changed, 13 insertions, 34 deletions
diff --git a/include/usage.h b/include/usage.h
index 7174ad414..7de93e00e 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2268,16 +2268,6 @@ USE_FEATURE_MDEV_CONFIG( \
2268 "$ patch -p1 < example.diff\n" \ 2268 "$ patch -p1 < example.diff\n" \
2269 "$ patch -p0 -i example.diff" 2269 "$ patch -p0 -i example.diff"
2270 2270
2271#if ENABLE_FEATURE_PIDOF_SINGLE
2272#define USAGE_FEATURE_PIDOF_SINGLE(a) a
2273#else
2274#define USAGE_FEATURE_PIDOF_SINGLE(a)
2275#endif
2276#if ENABLE_FEATURE_PIDOF_OMIT
2277#define USAGE_FEATURE_PIDOF_OMIT(a) a
2278#else
2279#define USAGE_FEATURE_PIDOF_OMIT(a)
2280#endif
2281#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) 2271#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
2282#define USAGE_PIDOF "Options:" 2272#define USAGE_PIDOF "Options:"
2283#else 2273#else
@@ -2291,14 +2281,14 @@ USE_FEATURE_MDEV_CONFIG( \
2291 "Lists the PIDs of all processes with names that match the\n" \ 2281 "Lists the PIDs of all processes with names that match the\n" \
2292 "names on the command line.\n" \ 2282 "names on the command line.\n" \
2293 USAGE_PIDOF \ 2283 USAGE_PIDOF \
2294 USAGE_FEATURE_PIDOF_SINGLE("\n\t-s\t\tdisplay only a single PID") \ 2284 USE_FEATURE_PIDOF_SINGLE("\n\t-s\t\tdisplay only a single PID") \
2295 USAGE_FEATURE_PIDOF_OMIT("\n\t-o\t\tomit given pid.") \ 2285 USE_FEATURE_PIDOF_OMIT("\n\t-o\t\tomit given pid.") \
2296 USAGE_FEATURE_PIDOF_OMIT("\n\t\t\tUse %PPID to omit the parent pid of pidof itself") 2286 USE_FEATURE_PIDOF_OMIT("\n\t\t\tUse %PPID to omit the parent pid of pidof itself")
2297#define pidof_example_usage \ 2287#define pidof_example_usage \
2298 "$ pidof init\n" \ 2288 "$ pidof init\n" \
2299 "1\n" \ 2289 "1\n" \
2300 USAGE_FEATURE_PIDOF_OMIT("$ pidof /bin/sh\n20351 5973 5950\n") \ 2290 USE_FEATURE_PIDOF_OMIT("$ pidof /bin/sh\n20351 5973 5950\n") \
2301 USAGE_FEATURE_PIDOF_OMIT("$ pidof /bin/sh -o %PPID\n20351 5950") 2291 USE_FEATURE_PIDOF_OMIT("$ pidof /bin/sh -o %PPID\n20351 5950")
2302 2292
2303#ifndef CONFIG_FEATURE_FANCY_PING 2293#ifndef CONFIG_FEATURE_FANCY_PING
2304#define ping_trivial_usage "host" 2294#define ping_trivial_usage "host"
@@ -2394,11 +2384,6 @@ USE_FEATURE_MDEV_CONFIG( \
2394#else 2384#else
2395#define USAGE_PS "\nOptions:" 2385#define USAGE_PS "\nOptions:"
2396#endif 2386#endif
2397#if ENABLE_FEATURE_PS_WIDE
2398#define USAGE_PS_WIDE(a) a
2399#else
2400#define USAGE_PS_WIDE(a)
2401#endif
2402 2387
2403#define ps_trivial_usage \ 2388#define ps_trivial_usage \
2404 "" 2389 ""
@@ -2406,7 +2391,7 @@ USE_FEATURE_MDEV_CONFIG( \
2406 "Report process status\n" \ 2391 "Report process status\n" \
2407 USAGE_PS \ 2392 USAGE_PS \
2408 USE_SELINUX("\n\t-c\tshow SE Linux context") \ 2393 USE_SELINUX("\n\t-c\tshow SE Linux context") \
2409 USAGE_PS_WIDE("\n\tw\twide output") 2394 USE_FEATURE_PS_WIDE("\n\tw\twide output")
2410 2395
2411#endif /* ENABLE_DESKTOP */ 2396#endif /* ENABLE_DESKTOP */
2412 2397
@@ -2693,18 +2678,12 @@ USE_FEATURE_MDEV_CONFIG( \
2693 USE_FEATURE_FANCY_SLEEP("$ sleep 1d 3h 22m 8s\n" \ 2678 USE_FEATURE_FANCY_SLEEP("$ sleep 1d 3h 22m 8s\n" \
2694 "[98528 second delay results]\n") 2679 "[98528 second delay results]\n")
2695 2680
2696#if ENABLE_FEATURE_SORT_BIG
2697# define USAGE_SORT_BIG(a) a
2698#else
2699# define USAGE_SORT_BIG(a)
2700#endif
2701
2702#define sort_trivial_usage \ 2681#define sort_trivial_usage \
2703 "[-nru" USAGE_SORT_BIG("gMcszbdfimSTokt] [-o outfile] [-k start[.offset][opts][,end[.offset][opts]] [-t char") "] [FILE]..." 2682 "[-nru" USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o outfile] [-k start[.offset][opts][,end[.offset][opts]] [-t char") "] [FILE]..."
2704#define sort_full_usage \ 2683#define sort_full_usage \
2705 "Sorts lines of text in the specified files\n\n" \ 2684 "Sorts lines of text in the specified files\n\n" \
2706 "Options:\n" \ 2685 "Options:\n" \
2707 USAGE_SORT_BIG( \ 2686 USE_FEATURE_SORT_BIG( \
2708 "\t-b\tignore leading blanks\n" \ 2687 "\t-b\tignore leading blanks\n" \
2709 "\t-c\tcheck whether input is sorted\n" \ 2688 "\t-c\tcheck whether input is sorted\n" \
2710 "\t-d\tdictionary order (blank or alphanumeric only)\n" \ 2689 "\t-d\tdictionary order (blank or alphanumeric only)\n" \
@@ -2715,16 +2694,16 @@ USE_FEATURE_MDEV_CONFIG( \
2715 "\t-M\tsort month\n" \ 2694 "\t-M\tsort month\n" \
2716 ) \ 2695 ) \
2717 "\t-n\tsort numbers\n" \ 2696 "\t-n\tsort numbers\n" \
2718 USAGE_SORT_BIG( \ 2697 USE_FEATURE_SORT_BIG( \
2719 "\t-o\toutput to file\n" \ 2698 "\t-o\toutput to file\n" \
2720 "\t-k\tsort by key\n" \ 2699 "\t-k\tsort by key\n" \
2721 "\t-t\tuse key separator other than whitespace\n" \ 2700 "\t-t\tuse key separator other than whitespace\n" \
2722 ) \ 2701 ) \
2723 "\t-r\treverse sort order\n" \ 2702 "\t-r\treverse sort order\n" \
2724 USAGE_SORT_BIG("\t-s\tstable (don't sort ties alphabetically)\n") \ 2703 USE_FEATURE_SORT_BIG("\t-s\tstable (don't sort ties alphabetically)\n") \
2725 "\t-u\tsuppress duplicate lines" \ 2704 "\t-u\tsuppress duplicate lines" \
2726 USAGE_SORT_BIG("\n\t-z\tinput terminated by nulls, not newlines\n") \ 2705 USE_FEATURE_SORT_BIG("\n\t-z\tinput terminated by nulls, not newlines\n") \
2727 USAGE_SORT_BIG("\t-mST\tignored for GNU compatibility") \ 2706 USE_FEATURE_SORT_BIG("\t-mST\tignored for GNU compatibility") \
2728 "" 2707 ""
2729#define sort_example_usage \ 2708#define sort_example_usage \
2730 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \ 2709 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
@@ -2734,7 +2713,7 @@ USE_FEATURE_MDEV_CONFIG( \
2734 "d\n" \ 2713 "d\n" \
2735 "e\n" \ 2714 "e\n" \
2736 "f\n" \ 2715 "f\n" \
2737 USAGE_SORT_BIG( \ 2716 USE_FEATURE_SORT_BIG( \
2738 "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \ 2717 "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \
2739 "d 2\n" \ 2718 "d 2\n" \
2740 "b 2\n" \ 2719 "b 2\n" \