From 381f9a2e8aa1697e2af3c2bcad962dfcfe7348d7 Mon Sep 17 00:00:00 2001 From: oharboe Date: Fri, 11 Jul 2008 09:06:36 +0000 Subject: .cfg files are now executed as Jim Tcl. Commands that terminate script w/error message. git-svn-id: svn://svn.berlios.de/openocd/trunk@790 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/options.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/helper/options.c') diff --git a/src/helper/options.c b/src/helper/options.c index f62ab16b..5ec558cf 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -110,15 +110,7 @@ int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[] break; case 'f': /* --file | -f */ { - char *t=strrchr(optarg, '.'); - if (strcmp(t, ".tcl")==0) - { - /* Files ending in .tcl are executed as Tcl files */ - snprintf(command_buffer, 128, "source [find {%s}]", optarg); - } else - { - snprintf(command_buffer, 128, "script %s", optarg); - } + snprintf(command_buffer, 128, "script %s", optarg); add_config_command(command_buffer); break; } -- cgit v1.2.3