diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-29 00:15:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-29 00:15:28 +0000 |
commit | 5402844572184e27ea644020a703753ca5bfc302 (patch) | |
tree | 3a1a29e17a04047d563a306f85763bdca8c49393 /cli.c | |
parent | 94af7e7b2128b9691862f4a244c687d492f596ed (diff) |
move the "show version" CLI command from cli.c to asterisk.c so that only one
file depends on version.h, and thus, only one file has to be rebuilt when
version.h gets regenerated (issue #6942)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23229 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -51,14 +51,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") /* For rl_filename_completion */ #include "editline/readline/readline.h" /* For module directory */ -#include "asterisk/version.h" - -extern const char *ast_build_hostname; -extern const char *ast_build_kernel; -extern const char *ast_build_machine; -extern const char *ast_build_os; -extern const char *ast_build_date; -extern const char *ast_build_user; extern unsigned long global_fin, global_fout; @@ -292,10 +284,6 @@ static char modlist_help[] = "Usage: show modules [like keyword]\n" " Shows Asterisk modules currently in use, and usage statistics.\n"; -static char version_help[] = -"Usage: show version\n" -" Shows Asterisk version information.\n"; - static char uptime_help[] = "Usage: show uptime [seconds]\n" " Shows Asterisk uptime information.\n" @@ -390,16 +378,6 @@ static int handle_modlist(int fd, int argc, char *argv[]) #undef MODLIST_FORMAT #undef MODLIST_FORMAT2 -static int handle_version(int fd, int argc, char *argv[]) -{ - if (argc != 2) - return RESULT_SHOWUSAGE; - ast_cli(fd, "Asterisk %s built by %s @ %s on a %s running %s on %s\n", - ASTERISK_VERSION, ast_build_user, ast_build_hostname, - ast_build_machine, ast_build_os, ast_build_date); - return RESULT_SUCCESS; -} - static int handle_chanlist(int fd, int argc, char *argv[]) { #define FORMAT_STRING "%-20.20s %-20.20s %-7.7s %-30.30s\n" @@ -941,7 +919,6 @@ static struct ast_cli_entry builtins[] = { { { "show", "modules", NULL }, handle_modlist, "List modules and info", modlist_help }, { { "show", "modules", "like", NULL }, handle_modlist, "List modules and info", modlist_help, complete_mod_4 }, { { "show", "uptime", NULL }, handle_showuptime, "Show uptime information", uptime_help }, - { { "show", "version", NULL }, handle_version, "Display version info", version_help }, { { "soft", "hangup", NULL }, handle_softhangup, "Request a hangup on a given channel", softhangup_help, complete_ch_3 }, { { "unload", NULL }, handle_unload, "Unload a dynamic module by name", unload_help, complete_fn }, { { NULL }, NULL, NULL, NULL } |