diff options
author | Jack Palevich <jackpal@google.com> | 2010-05-25 14:49:57 +0800 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2010-05-25 14:49:57 +0800 |
commit | 7fe202f160ca1926bc0277e3c276ad7b3f9b9aeb (patch) | |
tree | 3c962cbc42d5604c809ebefb8116174582b6f7bf /sh/Android.mk | |
parent | d9d1ca47802395e9e42e7deb05b2683d9d306598 (diff) | |
download | system_core-7fe202f160ca1926bc0277e3c276ad7b3f9b9aeb.zip system_core-7fe202f160ca1926bc0277e3c276ad7b3f9b9aeb.tar.gz system_core-7fe202f160ca1926bc0277e3c276ad7b3f9b9aeb.tar.bz2 |
Use linenoise to add simple editing and history to the Android shell.
The linenoise library is from http://github.com/antirez/linenoise
This patch also disables command-line editing and history from adb. The
adb implementation was shadowing the Android shell's implementation.
The adb implementation was also shadowing the editing and history
implementation in alternative shells such as BusyBox's ash.
Change-Id: I7ebd4cb391d0ce966c0ce0e707d80ecd659f9079
Diffstat (limited to 'sh/Android.mk')
-rw-r--r-- | sh/Android.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sh/Android.mk b/sh/Android.mk index 09bb6ac..b5e5c38 100644 --- a/sh/Android.mk +++ b/sh/Android.mk @@ -31,7 +31,11 @@ LOCAL_SRC_FILES:= \ LOCAL_MODULE:= sh -LOCAL_CFLAGS += -DSHELL +LOCAL_CFLAGS += -DSHELL -DWITH_LINENOISE + +LOCAL_STATIC_LIBRARIES := liblinenoise + +LOCAL_C_INCLUDES += system/core/liblinenoise make_ash_files: PRIVATE_SRC_FILES := $(SRC_FILES) make_ash_files: PRIVATE_CFLAGS := $(LOCAL_CFLAGS) |