Mirror of git://git.busybox.net/busybox with our patches on top
Source
Index: editors/Makefile.in
===================================================================
--- editors/Makefile.in (revision 10144)
+++ editors/Makefile.in (working copy)
@@ -24,8 +24,9 @@
srcdir=$(top_srcdir)/editors
EDITOR-y:=
-EDITOR-$(CONFIG_AWK) += awk.o
-EDITOR-$(CONFIG_PATCH) += patch.o
+EDITOR-$(CONFIG_AWK) += awk.o
+EDITOR-$(CONFIG_ED) += ed.o
+EDITOR-$(CONFIG_PATCH) += patch.o
EDITOR-$(CONFIG_SED) += sed.o
EDITOR-$(CONFIG_VI) += vi.o
EDITOR_SRC:= $(EDITOR-y)
Index: editors/Config.in
===================================================================
--- editors/Config.in (revision 10144)
+++ editors/Config.in (working copy)
@@ -20,6 +20,12 @@
Enable math functions of the Awk programming language.
NOTE: This will require libm to be present for linking.
+config CONFIG_ED
+ bool "ed"
+ default n
+ help
+ ed
+
config CONFIG_PATCH
bool "patch"
default n
Index: include/usage.h
===================================================================
--- include/usage.h (revision 10151)
+++ include/usage.h (working copy)
@@ -556,6 +561,9 @@
"$ echo \"Erik\\nis\\ncool\"\n" \
"Erik\\nis\\ncool\n")
+#define ed_trivial_usage ""
+#define ed_full_usage ""
+
#define env_trivial_usage \
"[-iu] [-] [name=value]... [command]"
#define env_full_usage \
Index: include/applets.h
===================================================================
--- include/applets.h (revision 10151)
+++ include/applets.h (working copy)
@@ -179,6 +179,9 @@
#ifdef CONFIG_ECHO
APPLET(echo, echo_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_ED
+ APPLET(ed, ed_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+#endif
#if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
--- /dev/null 2005-04-24 01:00:01.350003056 -0400
+++ ed.c 2005-04-24 01:38:51.000000000 -0400