summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath2004-01-27 09:22:20 +0000
committerGlenn L McGrath2004-01-27 09:22:20 +0000
commit82364bb59100c690a5cdee308da990577b91fe5a (patch)
treeacfa8a340753648fd0a1d3b40c26bc074b8186c1 /include
parent43112b4b65d60803a1511538a24930574be2f994 (diff)
downloadbusybox-82364bb59100c690a5cdee308da990577b91fe5a.zip
busybox-82364bb59100c690a5cdee308da990577b91fe5a.tar.gz
New applet, seq. No options, just the basics.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h4
-rw-r--r--include/usage.h10
2 files changed, 13 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h
index e348516..f3b5f3d 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -508,6 +508,9 @@
#ifdef CONFIG_SED
APPLET(sed, sed_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_SEQ
+ APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_SETKEYCODES
APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
@@ -682,4 +685,3 @@
};
#endif
-
diff --git a/include/usage.h b/include/usage.h
index f4897e4..bc6655e 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2094,6 +2094,16 @@
"$ echo "foo" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
"bar\n"
+#define seq_trivial_usage \
+ "[first [increment]] last"
+#define seq_full_usage \
+ "Print numbers from FIRST to LAST, in steps of INCREMENT.\n" \
+ "FIRST, INCREMENT default to 1\n" \
+ "Arguments:\n" \
+ "\tLAST\n" \
+ "\tFIRST\tLAST\n" \
+ "\tFIRST\tINCREMENT\tLAST\n"
+
#define setkeycodes_trivial_usage \
"SCANCODE KEYCODE ..."
#define setkeycodes_full_usage \