diff options
author | Denys Vlasenko | 2009-05-19 17:36:16 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-05-19 17:36:16 +0200 |
commit | 5e61115ea45c621867941e52e6ac016680415656 (patch) | |
tree | 7e92d0ee0720d907b4b35bfa510c3969c79eaaa8 /include | |
parent | 5a49d284a6a9f6cf2076f23561f95aebdfd44592 (diff) | |
download | busybox-5e61115ea45c621867941e52e6ac016680415656.zip busybox-5e61115ea45c621867941e52e6ac016680415656.tar.gz |
scriptreplay: new applet. +423 bytes
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h index 359440d..7838757 100644 --- a/include/applets.h +++ b/include/applets.h @@ -326,6 +326,7 @@ IF_RUNSV(APPLET(runsv, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) IF_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) IF_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) IF_SCRIPT(APPLET(script, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) +IF_SCRIPTREPLAY(APPLET(scriptreplay, _BB_DIR_BIN, _BB_SUID_NEVER)) IF_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER)) IF_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) IF_SENDMAIL(APPLET(sendmail, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) diff --git a/include/usage.h b/include/usage.h index 123462a..1e327fb 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3512,6 +3512,11 @@ "\n -g Process group id(s)" \ "\n -u Process user name(s) and/or id(s)" \ +#define scriptreplay_trivial_usage \ + "timingfile [typescript [divisor]]" +#define scriptreplay_full_usage "\n\n" \ + "Play back typescripts, using timing information" + #define reset_trivial_usage \ "" #define reset_full_usage "\n\n" \ @@ -3706,13 +3711,16 @@ "$ rx /tmp/foo\n" #define script_trivial_usage \ - "[-afq] [-c COMMAND] [OUTFILE]" + "[-afq" IF_SCRIPTREPLAY("t") "] [-c COMMAND] [OUTFILE]" #define script_full_usage "\n\n" \ "Options:" \ "\n -a Append output" \ "\n -c Run COMMAND, not shell" \ "\n -f Flush output after each write" \ "\n -q Quiet" \ + IF_SCRIPTREPLAY( \ + "\n -t Send timing to stderr" \ + ) #define sed_trivial_usage \ "[-efinr] pattern [files...]" |