From 82364bb59100c690a5cdee308da990577b91fe5a Mon Sep 17 00:00:00 2001
From: Glenn L McGrath <bug1@ihug.co.nz>
Date: Tue, 27 Jan 2004 09:22:20 +0000
Subject: New applet, seq. No options, just the basics.

---
 include/applets.h |  4 +++-
 include/usage.h   | 10 ++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

(limited to 'include')

diff --git a/include/applets.h b/include/applets.h
index e348516ea..f3b5f3d1c 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 f4897e4c0..bc6655e38 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 \
-- 
cgit v1.2.3