diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-09-15 17:03:48 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-09-15 17:03:48 +0000 |
commit | 7a32aaacd02c7f4035b0894aced7860658703985 (patch) | |
tree | 254a51ff50e97507a9dc8810b4cf014a2e825c88 | |
parent | b3c4e9add527fb03e20998679a049f84cbe12ac7 (diff) | |
download | busybox-w32-7a32aaacd02c7f4035b0894aced7860658703985.tar.gz busybox-w32-7a32aaacd02c7f4035b0894aced7860658703985.tar.bz2 busybox-w32-7a32aaacd02c7f4035b0894aced7860658703985.zip |
Awk applet written from scratch by Dmitry Zakharov
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index a1084fcc6..9117880ad 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -61,6 +61,9 @@ | |||
61 | #ifdef CONFIG_ASH | 61 | #ifdef CONFIG_ASH |
62 | APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 62 | APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
63 | #endif | 63 | #endif |
64 | #ifdef CONFIG_AWK | ||
65 | APPLET(awk, awk_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | ||
66 | #endif | ||
64 | #ifdef CONFIG_BASENAME | 67 | #ifdef CONFIG_BASENAME |
65 | APPLET(basename, basename_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 68 | APPLET(basename, basename_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
66 | #endif | 69 | #endif |
diff --git a/include/usage.h b/include/usage.h index ffc3724be..12289ad5b 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -38,6 +38,14 @@ | |||
38 | "\t-x\t\textract\n" \ | 38 | "\t-x\t\textract\n" \ |
39 | "\t-v\t\tverbosely list files processed\n" | 39 | "\t-v\t\tverbosely list files processed\n" |
40 | 40 | ||
41 | #define awk_trivial_usage \ | ||
42 | "[-v var=val][-F sep] { -f progname | 'programtext' } [FILE ...]" | ||
43 | #define awk_full_usage \ | ||
44 | "Options:\n" \ | ||
45 | "\t-v var=val\tassign value 'val' to variable 'var'\n" \ | ||
46 | "\t-F sep\t\tuse 'sep' as field separator\n" \ | ||
47 | "\t-f progname\tread program source from file 'progname'\n" | ||
48 | |||
41 | #define basename_trivial_usage \ | 49 | #define basename_trivial_usage \ |
42 | "FILE [SUFFIX]" | 50 | "FILE [SUFFIX]" |
43 | #define basename_full_usage \ | 51 | #define basename_full_usage \ |