From: Øyvind H. <go...@us...> - 2009-10-19 15:15:45
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 60b66deb4f75efb325dbdf7de7f8bf7c6518376d (commit) from 06fd6e7d67ab31d6cf23461e01d0bbe225bbf488 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 60b66deb4f75efb325dbdf7de7f8bf7c6518376d Author: oyvind <oyvind@titan.(none)> Date: Mon Oct 19 15:08:52 2009 +0200 Switch from svn to git version string handling. diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index cb008a7..dc0efb0 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -23,15 +23,15 @@ #include "embeddedice.h" #include "minidriver.h" #include "interface.h" +#include "zy1000_version.h" #include <cyg/hal/hal_io.h> // low level i/o #include <cyg/hal/hal_diag.h> - -#define ZYLIN_VERSION "1.55" +#define ZYLIN_VERSION GIT_ZY1000_VERSION #define ZYLIN_DATE __DATE__ #define ZYLIN_TIME __TIME__ -#define ZYLIN_OPENOCD "$Revision$" +#define ZYLIN_OPENOCD GIT_OPENOCD_VERSION #define ZYLIN_OPENOCD_VERSION "Zylin JTAG ZY1000 " ZYLIN_VERSION " " ZYLIN_DATE " " ZYLIN_TIME /* low level command set @@ -270,10 +270,7 @@ static int jim_zy1000_version(Jim_Interp *interp, int argc, Jim_Obj *const *argv const char *str = Jim_GetString(argv[1], NULL); if (strcmp("openocd", str) == 0) { - int revision; - revision = atol(ZYLIN_OPENOCD + strlen("XRevision: ")); - sprintf(buff, "%d", revision); - version_str = buff; + version_str = ZYLIN_OPENOCD; } else if (strcmp("zy1000", str) == 0) { ----------------------------------------------------------------------- Summary of changes: src/jtag/zy1000/zy1000.c | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) hooks/post-receive -- Main OpenOCD repository |