aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-01-18 22:01:04 -0500
committerRob Landley <rob@landley.net>2007-01-18 22:01:04 -0500
commite790130c2141257c7d230c09934fac119d750f44 (patch)
tree02fa2ec7a29cd2108fc083a5a54e278692c18baf
parent5aab966edd2479e8a933bd02aba2fc33641b9832 (diff)
downloadtoybox-e790130c2141257c7d230c09934fac119d750f44.tar.gz
Add count command.
-rw-r--r--toys/Config.in8
-rw-r--r--toys/toylist.h5
2 files changed, 11 insertions, 2 deletions
diff --git a/toys/Config.in b/toys/Config.in
index 51b29fa0..570ad4cc 100644
--- a/toys/Config.in
+++ b/toys/Config.in
@@ -21,6 +21,14 @@ config CATV
-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
diff --git a/toys/toylist.h b/toys/toylist.h
index 2f95232f..f20b4f88 100644
--- a/toys/toylist.h
+++ b/toys/toylist.h
@@ -68,11 +68,12 @@ NEWTOY(toybox, NULL, 0)
// 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))