From 304a4cfa0b234baf633a51a8e8f658858a22ef87 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 9 Jul 2008 20:53:30 +0000 Subject: [PATCH] Broke out serial-shell from the shell app into its own app. Project can use the serial-shell to get a shell running over the serial line, just like a project can use the telnetd to get a shell running over Telnet/TCP/IP. --- apps/serial-shell/Makefile.serial-shell | 4 ++++ apps/{shell => serial-shell}/serial-shell.c | 2 +- apps/{shell => serial-shell}/serial-shell.h | 2 +- apps/shell/Makefile.shell | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 apps/serial-shell/Makefile.serial-shell rename apps/{shell => serial-shell}/serial-shell.c (97%) rename apps/{shell => serial-shell}/serial-shell.h (96%) diff --git a/apps/serial-shell/Makefile.serial-shell b/apps/serial-shell/Makefile.serial-shell new file mode 100644 index 000000000..99472b346 --- /dev/null +++ b/apps/serial-shell/Makefile.serial-shell @@ -0,0 +1,4 @@ +serial_shell_src = serial-shell.c + +APPS += shell +include $(CONTIKI)/apps/shell/Makefile.shell diff --git a/apps/shell/serial-shell.c b/apps/serial-shell/serial-shell.c similarity index 97% rename from apps/shell/serial-shell.c rename to apps/serial-shell/serial-shell.c index 34f1f0f1d..3519e8d66 100644 --- a/apps/shell/serial-shell.c +++ b/apps/serial-shell/serial-shell.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: serial-shell.c,v 1.1 2008/02/04 23:42:17 adamdunkels Exp $ + * $Id: serial-shell.c,v 1.1 2008/07/09 20:53:30 adamdunkels Exp $ */ /** diff --git a/apps/shell/serial-shell.h b/apps/serial-shell/serial-shell.h similarity index 96% rename from apps/shell/serial-shell.h rename to apps/serial-shell/serial-shell.h index 3538a7caf..913ca7706 100644 --- a/apps/shell/serial-shell.h +++ b/apps/serial-shell/serial-shell.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: serial-shell.h,v 1.1 2008/02/04 23:42:17 adamdunkels Exp $ + * $Id: serial-shell.h,v 1.1 2008/07/09 20:53:30 adamdunkels Exp $ */ /** diff --git a/apps/shell/Makefile.shell b/apps/shell/Makefile.shell index 4d0eb7064..1dd2daf3f 100644 --- a/apps/shell/Makefile.shell +++ b/apps/shell/Makefile.shell @@ -1,4 +1,4 @@ -shell_src = shell.c serial-shell.c shell-reboot.c \ +shell_src = shell.c shell-reboot.c \ shell-vars.c shell-ps.c shell-rime.c shell-sendtest.c \ shell-blink.c shell-text.c shell-time.c \ shell-file.c shell-netfile.c shell-run.c \