version stuff

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@299 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-01-06 17:44:19 +00:00
parent df6e1cf2ba
commit b93b22e318
6 changed files with 49 additions and 18 deletions
+1
View File
@@ -45,6 +45,7 @@ extern "C" {
#include <assert.h>
#include <switch_version.h>
#include <switch_platform.h>
#include <switch_apr.h>
#include <switch_sqlite.h>
+4 -4
View File
@@ -37,10 +37,10 @@
extern "C" {
#endif
#define FREESWITCH_VERSION_MAJOR 1
#define FREESWITCH_VERSION_MINOR 0
#define FREESWITCH_VERSION_REVISION @SVN_VERSION@
#define FREESWITCH_VERSION_FULL FREESWITCH_VERSION_MAJOR.FREESWITCH_VERSION_MINOR.FREESWITCH_VERSION_REVISION
#define SWITCH_VERSION_MAJOR "1"
#define SWITCH_VERSION_MINOR "0"
#define SWITCH_VERSION_REVISION "@SVN_VERSION@"
#define SWITCH_VERSION_FULL SWITCH_VERSION_MAJOR "." SWITCH_VERSION_MINOR "." SWITCH_VERSION_REVISION
#ifdef __cplusplus
}
+1 -1
View File
@@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
switch_event_fire(&event);
}
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "freeswitch Version %s Started\n\n", SWITCH_SVN_VERSION);
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "freeswitch Version %s Started\n\n", SWITCH_VERSION_FULL);
/* wait for console input */
switch_console_loop();
+9 -4
View File
@@ -46,12 +46,17 @@ static int switch_console_process(char *cmd)
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Bye!\n");
return 0;
}
if (!strcmp(cmd, "version")) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Version %s\n", SWITCH_VERSION_FULL);
return 1;
}
if (!strcmp(cmd, "help")) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE,
"\n"
"Valid Commands:\n\n"
"help - umm yeah..\n"
"%sshutdown - stop the program\n\n",
"\n"
"Valid Commands:\n\n"
"version\n"
"help - umm yeah..\n"
"%sshutdown - stop the program\n\n",
perlhelp
);
return 1;