Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, moves the guts of run_parts to libbb to be used by ifupdown.

This commit is contained in:
Glenn L McGrath
2002-11-11 06:21:00 +00:00
parent 8f0722a53b
commit 545106f8db
8 changed files with 2945 additions and 196 deletions

View File

@@ -23,6 +23,7 @@ EDITOR_DIR:=$(TOPDIR)editors/
endif
EDITOR-y:=
EDITOR-$(CONFIG_AWK) += awk.o
EDITOR-$(CONFIG_SED) += sed.o
EDITOR-$(CONFIG_VI) += vi.o
EDITOR_SRC:= $(EDITOR-y)
@@ -30,6 +31,13 @@ EDITOR_OBJ:= $(patsubst %.c,$(EDITOR_DIR)%.o, $(EDITOR_SRC))
libraries-y+=$(EDITOR_DIR)$(EDITOR_AR)
needlibm-y:=
needlibm-$(CONFIG_FEATURE_AWK_MATH) := y
ifeq ($(needlibm-y),y)
LIBRARIES += -lm
endif
$(EDITOR_DIR)$(EDITOR_AR): $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y))
$(AR) -ro $@ $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y))

2742
editors/awk.c Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,10 @@
mainmenu_option next_comment
comment 'Editors'
bool 'awk' CONFIG_AWK
if [ "$CONFIG_AWK" = "y" ]; then
bool ' Enable math functions (requires libm)' CONFIG_FEATURE_AWK_MATH
fi
bool 'sed' CONFIG_SED
bool 'vi' CONFIG_VI
if [ "$CONFIG_VI" = "y" ]; then