From dbddd24443348c19c79e9d85f40d2aa429d0d885 Mon Sep 17 00:00:00 2001 From: russell Date: Fri, 16 Mar 2007 01:41:00 +0000 Subject: Making these documentation changes in the 1.4 branch upset various people, so these chanes will only be done in the trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58955 f38db490-d61c-443f-a65b-d21fe96a405b --- main/pbx.c | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) (limited to 'main/pbx.c') diff --git a/main/pbx.c b/main/pbx.c index bd857f7a3..a6e5f2d7d 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3206,56 +3206,6 @@ static int handle_show_application(int fd, int argc, char *argv[]) return RESULT_SUCCESS; } -#ifdef AST_DEVMODE -static char core_dumpappdocs_help[] = -"Usage: core dump appdocs [application]\n" -" Dump Application documentation to /tmp/ast_appdocs.tex.\n"; - -static int handle_core_dumpappdocs(int fd, int argc, char *argv[]) -{ - struct ast_app *app; - FILE *f; - char *appname = NULL; - const char *fn = "/tmp/ast_appdocs.tex"; - - if (argc > 3) - appname = argv[3]; - - if (!(f = fopen(fn, "w+"))) { - ast_cli(fd, "Unable to open %s for writing!\n", fn); - return RESULT_FAILURE; - } - - fprintf(f, "%% This file is automatically generated. Any manual edits will be lost.\n"); - - AST_LIST_LOCK(&apps); - AST_LIST_TRAVERSE(&apps, app, list) { - if (appname && strcasecmp(app->name, appname)) - continue; - - fprintf(f, "\\section{%s}\n" - "\\subsection{Synopsis}\n" - "\\begin{verbatim}\n" - "%s\n" - "\\end{verbatim}\n" - "\\subsection{Description}\n" - "\\begin{verbatim}\n" - "%s\n" - "\\end{verbatim}\n\n\n", app->name, app->synopsis, app->description); - - if (appname) - break; - } - AST_LIST_UNLOCK(&apps); - - fclose(f); - - ast_cli(fd, "Documentation has been dumped to %s\n", fn); - - return RESULT_SUCCESS; -} -#endif - /*! \brief handle_show_hints: CLI support for listing registred dial plan hints */ static int handle_show_hints(int fd, int argc, char *argv[]) { @@ -3842,12 +3792,6 @@ static struct ast_cli_entry pbx_cli[] = { handle_show_application, "Describe a specific dialplan application", show_application_help, complete_show_application, &cli_show_application_deprecated }, -#ifdef AST_DEVMODE - { { "core", "dump", "appdocs", NULL }, - handle_core_dumpappdocs, "Dump application documentation in LaTeX format", - core_dumpappdocs_help, NULL }, -#endif - { { "core", "set", "global", NULL }, handle_set_global, "Set global dialplan variable", set_global_help, NULL, &cli_set_global_deprecated }, -- cgit v1.2.3