Changed openocd version info creation to be more useful.

- Now displays subversion revision and svn URL

  
  

git-svn-id: svn://svn.berlios.de/openocd/trunk@220 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
bodylove
2007-12-10 16:55:14 +00:00
parent 9e6cec0dd3
commit 78d58dd16a
5 changed files with 19 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#define OPENOCD_VERSION "Open On-Chip Debugger (2007-09-05 09:00 CEST)"
#define OPENOCD_VERSION "Open On-Chip Debugger " VERSION " (" PKGBLDDATE ") svn:" PKGBLDREV
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -91,6 +91,7 @@ int main(int argc, char *argv[])
DEBUG("log init complete");
INFO( OPENOCD_VERSION );
INFO( "$URL: $");
cfg_cmd_ctx = copy_command_context(cmd_ctx);
cfg_cmd_ctx->mode = COMMAND_CONFIG;