Mercurial > hg > toybox
changeset 66:d2c7f1cbd7d2
Add count command.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 18 Jan 2007 22:01:04 -0500 |
parents | 329e2b37d0e1 |
children | b6646155e924 |
files | toys/Config.in toys/toylist.h |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/Config.in Thu Jan 18 22:00:46 2007 -0500 +++ b/toys/Config.in Thu Jan 18 22:01:04 2007 -0500 @@ -21,6 +21,14 @@ -t Show tabs as ^I -v Don't use ^x or M-x escapes. +config COUNT + bool "count" + default n + help + usage: count + + Copy stdin to stdout, displaying simple progress indicator to stderr. + config DF bool "df (disk free)" default n
--- a/toys/toylist.h Thu Jan 18 22:00:46 2007 -0500 +++ b/toys/toylist.h Thu Jan 18 22:01:04 2007 -0500 @@ -68,11 +68,12 @@ // The rest of these are alphabetical, for binary search. USE_BZCAT(NEWTOY(bzcat, "", TOYFLAG_USR|TOYFLAG_BIN)) -USE_CATV(NEWTOY(catv, "vte", TOYFLAG_NOFORK|TOYFLAG_USR|TOYFLAG_BIN)) +USE_CATV(NEWTOY(catv, "vte", TOYFLAG_USR|TOYFLAG_BIN)) +USE_COUNT(NEWTOY(count, "", TOYFLAG_USR|TOYFLAG_BIN)) USE_TOYSH(NEWTOY(cd, NULL, TOYFLAG_NOFORK)) USE_DF(NEWTOY(df, "Pkt*a", TOYFLAG_USR|TOYFLAG_SBIN)) USE_TOYSH(NEWTOY(exit, NULL, TOYFLAG_NOFORK)) -USE_HELLO(NEWTOY(hello, NULL, TOYFLAG_NOFORK|TOYFLAG_USR)) +USE_HELLO(NEWTOY(hello, NULL, TOYFLAG_USR)) USE_MKE2FS(NEWTOY(mke2fs, MKE2FS_OPTSTRING, TOYFLAG_SBIN)) USE_ONEIT(NEWTOY(oneit, "+p<1", TOYFLAG_SBIN)) USE_PWD(NEWTOY(pwd, NULL, TOYFLAG_BIN))